diff options
author | Zeev Suraski <zeev@php.net> | 2003-08-24 15:59:19 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2003-08-24 15:59:19 +0000 |
commit | 0ac5bbd780f218b037033e02f41f1c2a0156ce99 (patch) | |
tree | 76b2f178d38f5dd03b9bb7f5f5452124a7d56551 /Zend | |
parent | e44d0f526c377745e2888322b0785cbcbc318c8a (diff) | |
download | php-git-0ac5bbd780f218b037033e02f41f1c2a0156ce99.tar.gz |
Never, ever, overwrite the refcount element of a connected zval!
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index aaf5b427e7..9f3b75afd9 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -2612,7 +2612,7 @@ int zend_do_fcall_common_helper(ZEND_OPCODE_HANDLER_ARGS) if (EG(This)) { if (EG(exception) && EX(fbc)->common.fn_flags&ZEND_ACC_CTOR) { - EG(This)->refcount = 1; + EG(This)->refcount--; zval_ptr_dtor(&EG(This)); } else if (should_change_scope) { zval_ptr_dtor(&EG(This)); |