diff options
author | Joey Smith <joey@php.net> | 2001-09-19 02:24:05 +0000 |
---|---|---|
committer | Joey Smith <joey@php.net> | 2001-09-19 02:24:05 +0000 |
commit | 0098833e86ab4894a9a16a5a211b3f9c95df3552 (patch) | |
tree | 0cb8495b1c505ddd9542157c355bd6b111cc58c3 | |
parent | 1a92100ce18b4f36338a4d85d52fd8d3e0a54ac4 (diff) | |
download | php-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.c | 1 |
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); |