ID: 24002 Updated by: [EMAIL PROTECTED] Reported By: derek at hostopia dot com -Status: Open +Status: Feedback Bug Type: XML related Operating System: Linux PHP Version: 4.3.2 New Comment:
Please provide a short but complete example script. Previous Comments: ------------------------------------------------------------------------ [2003-06-03 16:14:29] derek at hostopia dot com 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 this bug report at http://bugs.php.net/?id=24002&edit=1