summaryrefslogtreecommitdiff
path: root/zend/objectimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'zend/objectimpl.h')
-rw-r--r--zend/objectimpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zend/objectimpl.h b/zend/objectimpl.h
index b014bb1..ed48e26 100644
--- a/zend/objectimpl.h
+++ b/zend/objectimpl.h
@@ -77,7 +77,7 @@ public:
_mixed->php.handlers = handlers;
// set the initial refcount (if it is different than one, because one is the default)
- if (refcount != 1) php()->gc.refcount = refcount;
+ if (refcount != 1) GC_REFCOUNT(php()) = refcount;
// the object may remember that we are its implementation object
base->_impl = this;