fix bug #38813 (DOMEntityReference->__construct crashes when called explicitly)

This commit is contained in:
Rob Richards 2006-09-14 13:35:02 +00:00
parent 806bc4e164
commit 6fea033c6e

View file

@ -73,7 +73,7 @@ PHP_METHOD(domentityreference, __construct)
intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC);
if (intern != NULL) {
oldnode = (xmlNodePtr)intern->ptr;
oldnode = dom_object_get_node(intern);
if (oldnode != NULL) {
php_libxml_node_free_resource(oldnode TSRMLS_CC);
}