summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Smith <joey@php.net>2001-09-19 02:24:05 +0000
committerJoey Smith <joey@php.net>2001-09-19 02:24:05 +0000
commit0098833e86ab4894a9a16a5a211b3f9c95df3552 (patch)
tree0cb8495b1c505ddd9542157c355bd6b111cc58c3
parent1a92100ce18b4f36338a4d85d52fd8d3e0a54ac4 (diff)
downloadphp-git-0098833e86ab4894a9a16a5a211b3f9c95df3552.tar.gz
Don't manually register the resource, let php_domobject_new do it for us.
This fixes and elusive SIGSEGV. Bug id'd and fixed by Ivo Hulinsky <huld@fido.cz>. This fixes #13322.
-rw-r--r--ext/domxml/php_domxml.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index fe16f737e9..36520be25f 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -2270,7 +2270,6 @@ PHP_FUNCTION(xmldocfile)
if (!docp) {
RETURN_FALSE;
}
- ret = zend_list_insert(docp, le_domxmldocp);
rv = php_domobject_new((xmlNodePtr) docp, &ret TSRMLS_CC);
SEPARATE_ZVAL(&rv);