From 391c027da6147b10804347a6e5a17e17064f0c24 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 18 Aug 2003 23:13:25 +0000 Subject: [PATCH] Get rid of PZVAL_UNLOCK() - fix untested --- ext/dom/php_dom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.40.0