1
0
Fork 0

refcount could be increase, use -1/2 to keep away from 0 in both direction (either ++ or --)

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1388 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 10 years ago
parent bd30aa1975
commit 52a1e4b242

@ -741,7 +741,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{
/* really fast shallow copy */
memcpy(dst, src, sizeof(src[0]));
DST(`refcount') = &XG(op_array_dummy_refcount_holder);
DST(`refcount[0]') = -1;
XG(op_array_dummy_refcount_holder) = ((zend_uint) -1) / 2;
#ifdef ZEND_ACC_ALIAS
if ((processor->active_class_entry_src && (processor->active_class_entry_src->ce_flags & ZEND_ACC_TRAIT))) {
PROC_ZSTRING(, function_name)

Loading…
Cancel
Save