From: derek at hostopia dot com Operating system: Linux PHP version: 4.3.2 PHP Bug Type: XML related Bug description: Nested calls to xml_parse no longer work
PHP versions up to and including 4.2.2 supported calling xml_parse from within an xml element/data handler, but when tested with version 4.3.2, this functionality produces unexpected results. Sometimes the error 'xml processing instruction not at start of external entity' occurs, but most of the time the xml parser will get stuck in an endless loop. A rather massive PHP application makes use of this feature, and we currently do not have a work-around. Basically we need XML elements to be able to give dynamic XML content to the XML parser. This was working fine up until now, and is quite important. Is there a "better way" to accomplish this if in fact this use of xml_parse is unorthodox? For example, this XML-based code: <SCREEN> <INFO>This will render a random surprise shape</INFO> <RANDOM shapes="SQUARE, TRIANGLE, CIRCLE"/> </SCREEN> Where the element handler for "RANDOM" will give a random XML element to the parser... i.e. <SQUARE width="5" height="5"/> -- Edit bug report at http://bugs.php.net/?id=24002&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24002&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24002&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24002&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24002&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24002&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24002&r=support Expected behavior: http://bugs.php.net/fix.php?id=24002&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24002&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24002&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24002&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24002&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24002&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24002&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24002&r=gnused
