]> granicus.if.org Git - php/commitdiff
Fixed bug #28817 (Var problem when extending domDocument). (Georg)
authorRob Richards <rrichards@php.net>
Sat, 4 Dec 2004 11:39:34 +0000 (11:39 +0000)
committerRob Richards <rrichards@php.net>
Sat, 4 Dec 2004 11:39:34 +0000 (11:39 +0000)
ext/dom/php_dom.c

index 40be0c17e28aa37c03318003ac20c958a288936c..dd51b44dc275208cf1e3ade22549c8eb0d3c1ff1 100644 (file)
@@ -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) {