]> granicus.if.org Git - php/commitdiff
fix bug #46406 (Unregistering nodeclass throws E_FATAL)
authorRob Richards <rrichards@php.net>
Wed, 29 Oct 2008 21:21:06 +0000 (21:21 +0000)
committerRob Richards <rrichards@php.net>
Wed, 29 Oct 2008 21:21:06 +0000 (21:21 +0000)
ext/dom/php_dom.c

index fc57d9e8d9d5c161afca6fc5ce6a071f926ab34a..a278bb49050bdeaeaf7918711e7cc84810640d9d 100644 (file)
@@ -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;