]> granicus.if.org Git - php/commitdiff
Fixed typo
authorXinchen Hui <laruence@gmail.com>
Wed, 20 Jul 2016 09:01:42 +0000 (17:01 +0800)
committerXinchen Hui <laruence@gmail.com>
Wed, 20 Jul 2016 09:01:42 +0000 (17:01 +0800)
Zend/zend_vm_def.h
Zend/zend_vm_execute.h

index 3938445321660ddcce34ffe7a5d9fa7ae6ba3a40..e4fd8e8e2805d04071f38eb92e6b2cdd7f1a3b72 100644 (file)
@@ -4193,6 +4193,7 @@ ZEND_VM_HANDLER(107, ZEND_CATCH, CONST, CV)
        if (UNEXPECTED(Z_ISREF_P(ex))) {
                ex = Z_REFVAL_P(ex);
        }
+       zval_ptr_dtor(ex);
        ZVAL_OBJ(ex, EG(exception));
        if (UNEXPECTED(EG(exception) != exception)) {
                GC_REFCOUNT(EG(exception))++;
index 08a5ae622d6ac21ec5956d701cdbf41b1a363c76..0103128183e17fa720e013e879aca9712c715ab9 100644 (file)
@@ -9592,6 +9592,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CATCH_SPEC_CONST_CV_HANDLER(ZE
        if (UNEXPECTED(Z_ISREF_P(ex))) {
                ex = Z_REFVAL_P(ex);
        }
+       zval_ptr_dtor(ex);
        ZVAL_OBJ(ex, EG(exception));
        if (UNEXPECTED(EG(exception) != exception)) {
                GC_REFCOUNT(EG(exception))++;