#43364 [Opn->Asn]: using recursive xincludes doesn't remove internal xml nodes properly
| From: | rrichards@php.net | Date: | Wed, 21 Nov 2007 17:42:23 +0000 |
| Subject: | #43364 [Opn->Asn]: using recursive xincludes doesn't remove internal xml nodes properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119932@lists.php.net to get a copy of this message | ||
ID: 43364
Updated by: rrichards@php.net
Reported By: ddb at bitxtender dot de
-Status: Open
+Status: Assigned
Bug Type: DOM XML related
Operating System: Mac OS X
PHP Version: 5.3CVS-2007-11-21 (CVS)
-Assigned To:
+Assigned To: rrichards
New Comment:
assign to self
Previous Comments:
------------------------------------------------------------------------
[2007-11-21 16:21:42] ddb at bitxtender dot de
Description:
------------
libxml creates XML_XINCLUDE_START and XML_XINCLUDE_END nodes when
inserting the referenced node(s). When using x:include in a part which
will be x:included by some other part this will create nested
XML_INCLUDE_* nodes but php doesn't descend into child nodes between
XML_XINCLUDE_START and XML_XINCLUDE_END so only the top level
XML_INCLUDE nodes get removed
a patch fixing this is available at
http://agavi.org/php/xinclude_bug.patch
Reproduce code:
---------------
http://www.agavi.org/php/xinclude_bug.phps
Expected result:
----------------
OK
Actual result:
--------------
PHP Warning: loopElements(): Unsupported node type: 19 in
/Users/dominik/Desktop/xinclude_bug.php on line 26
Warning: loopElements(): Unsupported node type: 19 in
/Users/dominik/Desktop/xinclude_bug.php on line 26
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43364&edit=1