mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
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:
parent
1a92100ce1
commit
0098833e86
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user