mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
MFB: fix bug #38813 (DOMEntityReference->__construct crashes when called explicitly)
This commit is contained in:
parent
5adb0b309f
commit
ed55b21a1b
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ PHP_METHOD(domentityreference, __construct)
|
||||||
|
|
||||||
intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC);
|
intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC);
|
||||||
if (intern != NULL) {
|
if (intern != NULL) {
|
||||||
oldnode = (xmlNodePtr)intern->ptr;
|
oldnode = dom_object_get_node(intern);
|
||||||
if (oldnode != NULL) {
|
if (oldnode != NULL) {
|
||||||
php_libxml_node_free_resource(oldnode TSRMLS_CC);
|
php_libxml_node_free_resource(oldnode TSRMLS_CC);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue