summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorYiduo (David) Wang <davidw@php.net>2007-10-07 05:22:07 +0000
committerYiduo (David) Wang <davidw@php.net>2007-10-07 05:22:07 +0000
commit4b4d634cb956de1efc13c8ed9b243fe1a85f783b (patch)
treeeaa8d691de244aff3ee68fd3c23f769f02fa4446 /Zend/zend_exceptions.c
parentca4c55ad3a673257925bd9b458683c4f0e60e755 (diff)
downloadphp-git-4b4d634cb956de1efc13c8ed9b243fe1a85f783b.tar.gz
MFH: Added macros for managing zval refcounts and is_ref statuses
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 38185819cb..e2cae139fe 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -87,8 +87,8 @@ static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_t
zend_hash_copy(object->properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
ALLOC_ZVAL(trace);
- trace->is_ref = 0;
- trace->refcount = 0;
+ Z_UNSET_ISREF_P(trace);
+ Z_SET_REFCOUNT_P(trace, 0);
zend_fetch_debug_backtrace(trace, skip_top_traces, 0 TSRMLS_CC);
zend_update_property_string(default_exception_ce, &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC);