From: nbijnens at servs dot eu Operating system: Debian 4 Etch PHP version: 5.2.4 PHP Bug Type: SimpleXML related Bug description: LIBXML_XINCLUDE not working
Description: ------------ The LIBXML_XINCLUDE paramter given to the SimpleXML::__construct() is being ignored. Xinclude does work with DOMDocument. Using php-5.2.3 Reproduce code: --------------- <?php $xml = ' <test> <xi:include href="xmltobeincluded.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> </test> '; $x = new SimpleXMLElement($xml, LIBXML_XINCLUDE); echo $x->asXML(); ?> Expected result: ---------------- <test> <xtest> value </xtest> </test> Actual result: -------------- <?xml version="1.0"?> <test> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xmltobeincluded.xml"/> </test> -- Edit bug report at http://bugs.php.net/?id=42609&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42609&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42609&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42609&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42609&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42609&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42609&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42609&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42609&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42609&r=support Expected behavior: http://bugs.php.net/fix.php?id=42609&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42609&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42609&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42609&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42609&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42609&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42609&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42609&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42609&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42609&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42609&r=mysqlcfg