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.
This commit is contained in:
Joey Smith 2001-09-19 02:24:05 +00:00
parent 1a92100ce1
commit 0098833e86

View File

@ -2270,7 +2270,6 @@ PHP_FUNCTION(xmldocfile)
if (!docp) { if (!docp) {
RETURN_FALSE; RETURN_FALSE;
} }
ret = zend_list_insert(docp, le_domxmldocp);
rv = php_domobject_new((xmlNodePtr) docp, &ret TSRMLS_CC); rv = php_domobject_new((xmlNodePtr) docp, &ret TSRMLS_CC);
SEPARATE_ZVAL(&rv); SEPARATE_ZVAL(&rv);