rrichards Thu Sep 14 13:35:49 2006 UTC
Modified files:
/php-src/ext/dom entityreference.c
Log:
MFB: fix bug #38813 (DOMEntityReference->__construct crashes when called
explicitly)
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/entityreference.c?r1=1.16&r2=1.17&diff_format=u
Index: php-src/ext/dom/entityreference.c
diff -u php-src/ext/dom/entityreference.c:1.16
php-src/ext/dom/entityreference.c:1.17
--- php-src/ext/dom/entityreference.c:1.16 Fri Aug 4 18:11:27 2006
+++ php-src/ext/dom/entityreference.c Thu Sep 14 13:35:49 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: entityreference.c,v 1.16 2006/08/04 18:11:27 rrichards Exp $ */
+/* $Id: entityreference.c,v 1.17 2006/09/14 13:35:49 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -72,7 +72,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