Bug #42609 [Com]: LIBXML_XINCLUDE not working

From: Date: Sun, 27 Feb 2022 20:55:57 +0000
Subject: Bug #42609 [Com]: LIBXML_XINCLUDE not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240063@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=42609&edit=1 ID: 42609 Comment by: ibcmaxcom at gmail dot com Reported by: nbijnens at servs dot eu Summary: LIBXML_XINCLUDE not working Status: Not a bug Type: Bug Package: SimpleXML related Operating System: Debian 4 Etch PHP Version: 5.2.4 Block user comment: N Private report: N New Comment: i dont know if this old bugs still related but my site https://137.184.250.104/ still has this problems eventhough i use latest php Previous Comments: ------------------------------------------------------------------------ [2007-09-10 12:08:17] rrichards@php.net that option is currently only implemented in libxml2 when using xmlreader ------------------------------------------------------------------------ [2007-09-10 11:38:51] nbijnens at servs dot eu 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 this bug report at https://bugs.php.net/bug.php?id=42609&edit=1

« previous php.bugs (#240063) next »