From: Zeev Suraski Date: Mon, 18 Aug 2003 23:13:25 +0000 (+0000) Subject: Get rid of PZVAL_UNLOCK() - fix untested X-Git-Tag: RELEASE_0_7~571 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=391c027da6147b10804347a6e5a17e17064f0c24;p=php Get rid of PZVAL_UNLOCK() - fix untested --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index dc56503160..e1c45281f6 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -306,8 +306,7 @@ zval *dom_read_property(zval *object, zval *member, zend_bool silent TSRMLS_DC) ret = hnd->read_func(obj, &retval TSRMLS_CC); if (ret == SUCCESS) { /* ensure we're creating a temporary variable */ - retval->refcount = 1; - PZVAL_UNLOCK(retval); + retval->refcount = 0; } else { retval = EG(uninitialized_zval_ptr); }