1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00

Never, ever, overwrite the refcount element of a connected zval!

This commit is contained in:
Zeev Suraski
2003-08-24 15:59:19 +00:00
parent e44d0f526c
commit 0ac5bbd780

View File

@@ -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));