diff options
author | Antony Dovgal <tony2001@php.net> | 2006-03-26 00:23:25 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-03-26 00:23:25 +0000 |
commit | d085b37f668c34f73a49cd312939b7ce5fec310a (patch) | |
tree | d4ad1d334e3f84c75875da740d451dab46ce8c0a | |
parent | 65d704cb7c655a4be180c741f23d7f7a57a83665 (diff) | |
download | php-git-d085b37f668c34f73a49cd312939b7ce5fec310a.tar.gz |
fix #36859 (DOMElement crashes when calling __construct when clone'ing)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/dom/php_dom.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -11,6 +11,8 @@ PHP NEWS - Removed the E_STRICT deprecation notice from "var". (Ilia) - Fixed debug_zval_dump() to support private and protected members. (Dmitry) - Fixed SoapFault::getMessage(). (Dmitry) +- Fixed bug #36859 (DOMElement crashes when calling __construct when + clone'ing). (Tony) - Fixed bug #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault). (Tony) - Fixed bug #36820 (Privileged connection with an Oracle password file fails). diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index fcd7b313be..0e5bf0bfa4 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -443,6 +443,7 @@ zend_object_value dom_objects_store_clone_obj(zval *zobject TSRMLS_DC) retval.handle = zend_objects_store_put(new_object, obj->dtor, obj->free_storage, obj->clone TSRMLS_CC); intern = (dom_object *) new_object; intern->handle = retval.handle; + intern->ptr = NULL; retval.handlers = Z_OBJ_HT_P(zobject); old_object = (dom_object *) obj->object; |