#43364 [Asn->Csd]: using recursive xincludes doesn't remove internal xml nodes properly

From: Date: Wed, 28 Nov 2007 10:48:03 +0000
Subject: #43364 [Asn->Csd]: using recursive xincludes doesn't remove internal xml nodes properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120167@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: Assigned +Status: Closed Bug Type: DOM XML related Operating System: Mac OS X PHP Version: 5.3CVS-2007-11-21 (CVS) Assigned To: rrichards New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-11-21 17:42:22] rrichards@php.net assign to self ------------------------------------------------------------------------ [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

« previous php.bugs (#120167) next »