From: Rob Richards Date: Sat, 4 Dec 2004 11:41:12 +0000 (+0000) Subject: MFH: Fixed bug #28817 (Var problem when extending domDocument). (Georg) X-Git-Tag: php-5.0.3RC2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccf618e1ddc9a9cb9c3f5688eb99d1d64479cdd4;p=php MFH: Fixed bug #28817 (Var problem when extending domDocument). (Georg) add test --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index d0e55617b7..dd1ab2271a 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -234,6 +234,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) {