From 4b4d634cb956de1efc13c8ed9b243fe1a85f783b Mon Sep 17 00:00:00 2001 From: "Yiduo (David) Wang" Date: Sun, 7 Oct 2007 05:22:07 +0000 Subject: MFH: Added macros for managing zval refcounts and is_ref statuses --- ext/tidy/tidy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/tidy/tidy.c') diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 60928a7ce0..9774638f88 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -658,8 +658,8 @@ static zval * tidy_instanciate(zend_class_entry *pce, zval *object TSRMLS_DC) Z_TYPE_P(object) = IS_OBJECT; object_init_ex(object, pce); - object->refcount = 1; - object->is_ref = 1; + Z_SET_REFCOUNT_P(object, 1); + Z_SET_ISREF_P(object); return object; } -- cgit v1.2.1