summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.c
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 /ext/dom/php_dom.c
parent65d704cb7c655a4be180c741f23d7f7a57a83665 (diff)
downloadphp-git-d085b37f668c34f73a49cd312939b7ce5fec310a.tar.gz
fix #36859 (DOMElement crashes when calling __construct when clone'ing)
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r--ext/dom/php_dom.c1
1 files changed, 1 insertions, 0 deletions
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;