[patch] domxml ./. resubmitting fix for bug #14522
| From: | Lukas Schroeder | Date: | Thu, 07 Mar 2002 22:59:23 +0000 |
| Subject: | [patch] domxml ./. resubmitting fix for bug #14522 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-80898@lists.php.net to get a copy of this message | ||
Bug #14522 Crash with using $node->unlink();
Bug #14522 was prematurely marked as closed; i submitted this patch, but
the bug was marked as closed, before the patch really got a applied to
CVS to fix it...
regards,
-lukas
Index: php_domxml.c
===================================================================
RCS file: /repository/php4/ext/domxml/php_domxml.c,v
retrieving revision 1.119
diff -u -r1.119 php_domxml.c
--- php_domxml.c 7 Mar 2002 16:34:13 -0000 1.119
+++ php_domxml.c 7 Mar 2002 22:17:49 -0000
@@ -1802,8 +1802,6 @@
DOMXML_PARAM_NONE(nodep, id, le_domxmlnodep);
xmlUnlinkNode(nodep);
- xmlFreeNode(nodep);
- zval_dtor(id); /* This is not enough because the children won't be deleted */
}
/* }}} */