summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-03-26 00:23:25 +0000
committerAntony Dovgal <tony2001@php.net>2006-03-26 00:23:25 +0000
commitd085b37f668c34f73a49cd312939b7ce5fec310a (patch)
treed4ad1d334e3f84c75875da740d451dab46ce8c0a
parent65d704cb7c655a4be180c741f23d7f7a57a83665 (diff)
downloadphp-git-d085b37f668c34f73a49cd312939b7ce5fec310a.tar.gz
fix #36859 (DOMElement crashes when calling __construct when clone'ing)
-rw-r--r--NEWS2
-rw-r--r--ext/dom/php_dom.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e1a85de627..73b40f5604 100644
--- a/NEWS
+++ b/NEWS
@@ -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;