From: Marcus Boerger Date: Thu, 22 May 2003 19:13:20 +0000 (+0000) Subject: No need to copy here unless implicit_clone is active (noticed by rob) X-Git-Tag: RELEASE_1_0_2~628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=475594c861e7df88934e28b5be1b29e61d90715f;p=php No need to copy here unless implicit_clone is active (noticed by rob) --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 97701d49b9..23b1448098 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -2476,7 +2476,7 @@ int zend_init_method_call_handler(ZEND_OPCODE_HANDLER_ARGS) if (EX(fbc)->common.fn_flags & ZEND_ACC_STATIC) { EX(object) = NULL; } else { - if (!PZVAL_IS_REF(EX(object))) { + if (!PZVAL_IS_REF(EX(object)) || !EG(implicit_clone)) { EX(object)->refcount++; /* For $this pointer */ } else { zval *this_ptr;