]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #28817 (Var problem when extending domDocument). (Georg)
authorRob Richards <rrichards@php.net>
Sat, 4 Dec 2004 11:41:12 +0000 (11:41 +0000)
committerRob Richards <rrichards@php.net>
Sat, 4 Dec 2004 11:41:12 +0000 (11:41 +0000)
add test

ext/dom/php_dom.c

index d0e55617b732e1b7359d89abfdbabed3e49ac1c1..dd1ab2271af7d0ae09cd69614de768aa6d6efd08 100644 (file)
@@ -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) {