From:             ddb at bitxtender dot de
Operating system: Mac OS X
PHP version:      5.3CVS-2007-11-21 (CVS)
PHP Bug Type:     DOM XML related
Bug description:  using recursive xincludes doesn't remove internal xml nodes 
properly

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 bug report at http://bugs.php.net/?id=43364&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43364&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43364&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43364&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43364&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43364&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43364&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43364&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43364&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43364&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43364&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43364&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43364&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43364&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43364&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43364&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43364&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43364&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43364&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43364&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43364&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43364&r=mysqlcfg

Reply via email to