Patch simplexml-fix-xml-header-for-clone.patch for SimpleXML related Bug #46672
Patch version 2010-04-05 01:46 UTC
Return to Bug #46672 |
Download this patch
Patch Revisions:
Developer: compuart.php@gmail.com
Index: php-src-5.3/ext/simplexml/simplexml.c
===================================================================
--- php-src-5.3/ext/simplexml/simplexml.c (revision 297468)
+++ php-src-5.3/ext/simplexml/simplexml.c (working copy)
@@ -1954,6 +1954,10 @@
php_libxml_increment_node_ptr((php_libxml_node_object *)clone, nodep, NULL TSRMLS_CC);
+ if (clone->node) {
+ clone->node->node->parent = (xmlNodePtr)docp;
+ }
+
*clone_ptr = (void *) clone;
}
/* }}} */
|