]> granicus.if.org Git - php/commitdiff
Don't manually register the resource, let php_domobject_new do it for us.
authorJoey Smith <joey@php.net>
Wed, 19 Sep 2001 02:24:05 +0000 (02:24 +0000)
committerJoey Smith <joey@php.net>
Wed, 19 Sep 2001 02:24:05 +0000 (02:24 +0000)
This fixes and elusive SIGSEGV.
Bug id'd and fixed by Ivo Hulinsky <huld@fido.cz>.

This fixes #13322.

ext/domxml/php_domxml.c

index fe16f737e987790430cd62379c2436dc4c4103c8..36520be25fbbbe0e0179c0f87ceaa2e120cfea99 100644 (file)
@@ -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);