cvs: php-src /ext/dom php_dom.c
| From: | Rob Richards | Date: | Wed, 29 Oct 2008 21:21:06 +0000 |
| Subject: | cvs: php-src /ext/dom php_dom.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53777@lists.php.net to get a copy of this message | ||
rrichards Wed Oct 29 21:21:06 2008 UTC
Modified files:
/php-src/ext/dom php_dom.c
Log:
fix bug #46406 (Unregistering nodeclass throws E_FATAL)
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/php_dom.c?r1=1.112&r2=1.113&diff_format=u
Index: php-src/ext/dom/php_dom.c
diff -u php-src/ext/dom/php_dom.c:1.112 php-src/ext/dom/php_dom.c:1.113
--- php-src/ext/dom/php_dom.c:1.112 Fri Oct 24 14:34:12 2008
+++ php-src/ext/dom/php_dom.c Wed Oct 29 21:21:06 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_dom.c,v 1.112 2008/10/24 14:34:12 felipe Exp $ */
+/* $Id: php_dom.c,v 1.113 2008/10/29 21:21:06 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -163,7 +163,7 @@
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;