From: Rob Richards Date: Wed, 29 Oct 2008 21:21:06 +0000 (+0000) Subject: fix bug #46406 (Unregistering nodeclass throws E_FATAL) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab7e0ab7b3e72467369fb4af6f0a059e3ae50aae;p=php fix bug #46406 (Unregistering nodeclass throws E_FATAL) --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index fc57d9e8d9..a278bb4905 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -163,7 +163,7 @@ int dom_set_doc_classmap(php_libxml_ref_obj *document, zend_class_entry *basece, if (ce) { return zend_u_hash_update(doc_props->classmap, UG(unicode)?IS_UNICODE:IS_STRING, basece->name, basece->name_length + 1, &ce, sizeof(ce), NULL); } else { - return zend_u_hash_del(doc_props->classmap, UG(unicode)?IS_UNICODE:IS_STRING, basece->name, basece->name_length + 1); + zend_u_hash_del(doc_props->classmap, UG(unicode)?IS_UNICODE:IS_STRING, basece->name, basece->name_length + 1); } } return SUCCESS;