]> granicus.if.org Git - php/commitdiff
No need to copy here unless implicit_clone is active (noticed by rob)
authorMarcus Boerger <helly@php.net>
Thu, 22 May 2003 19:13:20 +0000 (19:13 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 22 May 2003 19:13:20 +0000 (19:13 +0000)
Zend/zend_execute.c

index 97701d49b9d8a70e8dded1a16d8a207bba78271a..23b1448098d79d1797dac18a82b0bd6b80be473a 100644 (file)
@@ -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;