rrichards Thu Sep 14 13:35:02 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/dom entityreference.c Log: fix bug #38813 (DOMEntityReference->__construct crashes when called explicitly) http://cvs.php.net/viewvc.cgi/php-src/ext/dom/entityreference.c?r1=1.12.2.1&r2=1.12.2.1.2.1&diff_format=u Index: php-src/ext/dom/entityreference.c diff -u php-src/ext/dom/entityreference.c:1.12.2.1 php-src/ext/dom/entityreference.c:1.12.2.1.2.1 --- php-src/ext/dom/entityreference.c:1.12.2.1 Sun Jan 1 12:50:06 2006 +++ php-src/ext/dom/entityreference.c Thu Sep 14 13:35:02 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: entityreference.c,v 1.12.2.1 2006/01/01 12:50:06 sniper Exp $ */ +/* $Id: entityreference.c,v 1.12.2.1.2.1 2006/09/14 13:35:02 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -73,7 +73,7 @@ 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); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php