From: Rob Richards Date: Sat, 4 Dec 2004 11:39:34 +0000 (+0000) Subject: Fixed bug #28817 (Var problem when extending domDocument). (Georg) X-Git-Tag: RELEASE_0_2~578 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25554b81185e94b7d979eca49acbcda9f21dfdea;p=php Fixed bug #28817 (Var problem when extending domDocument). (Georg) --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 40be0c17e2..dd51b44dc2 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -235,6 +235,7 @@ zval *dom_read_property(zval *object, zval *member, int type TSRMLS_DC) } else { std_hnd = zend_get_std_object_handlers(); retval = std_hnd->read_property(object, member, type TSRMLS_CC); + retval->refcount = 1; } if (member == &tmp_member) {