]> granicus.if.org Git - php/commitdiff
Fixed typo
authorDmitry Stogov <dmitry@zend.com>
Tue, 19 Mar 2019 22:31:35 +0000 (01:31 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 19 Mar 2019 22:31:35 +0000 (01:31 +0300)
Zend/zend_vm_def.h
Zend/zend_vm_execute.h

index 2fe4cc76d48d2e1a5abfd31a834ea6273a8d1928..60c77ce8ae12a7121f8d9875fc38f725d42f9ad6 100644 (file)
@@ -6551,7 +6551,7 @@ ZEND_VM_C_LABEL(num_index_prop):
 
                        if (OP1_TYPE & (IS_CONST|IS_CV)) {
                                /* avoid exception check */
-                               FREE_OP1();
+                               FREE_OP2();
                                ZEND_VM_SMART_BRANCH(result, 0);
                                ZVAL_BOOL(EX_VAR(opline->result.var), result);
                                ZEND_VM_NEXT_OPCODE();
index eebf5e9ba4c704af4af7c68477798e3c1dd9e2d4..f160de75d1d4a92ab1931aace7f918369cfb36c9 100644 (file)
@@ -8015,7 +8015,7 @@ num_index_prop:
 
                        if (IS_CONST & (IS_CONST|IS_CV)) {
                                /* avoid exception check */
-
+                               zval_ptr_dtor_nogc(free_op2);
                                ZEND_VM_SMART_BRANCH(result, 0);
                                ZVAL_BOOL(EX_VAR(opline->result.var), result);
                                ZEND_VM_NEXT_OPCODE();
@@ -14391,7 +14391,7 @@ num_index_prop:
 
                        if ((IS_TMP_VAR|IS_VAR) & (IS_CONST|IS_CV)) {
                                /* avoid exception check */
-                               zval_ptr_dtor_nogc(free_op1);
+
                                ZEND_VM_SMART_BRANCH(result, 0);
                                ZVAL_BOOL(EX_VAR(opline->result.var), result);
                                ZEND_VM_NEXT_OPCODE();
@@ -15898,7 +15898,7 @@ num_index_prop:
 
                        if ((IS_TMP_VAR|IS_VAR) & (IS_CONST|IS_CV)) {
                                /* avoid exception check */
-                               zval_ptr_dtor_nogc(free_op1);
+                               zval_ptr_dtor_nogc(free_op2);
                                ZEND_VM_SMART_BRANCH(result, 0);
                                ZVAL_BOOL(EX_VAR(opline->result.var), result);
                                ZEND_VM_NEXT_OPCODE();
@@ -17519,7 +17519,7 @@ num_index_prop:
 
                        if ((IS_TMP_VAR|IS_VAR) & (IS_CONST|IS_CV)) {
                                /* avoid exception check */
-                               zval_ptr_dtor_nogc(free_op1);
+
                                ZEND_VM_SMART_BRANCH(result, 0);
                                ZVAL_BOOL(EX_VAR(opline->result.var), result);
                                ZEND_VM_NEXT_OPCODE();
@@ -47910,7 +47910,7 @@ num_index_prop:
 
                        if (IS_CV & (IS_CONST|IS_CV)) {
                                /* avoid exception check */
-
+                               zval_ptr_dtor_nogc(free_op2);
                                ZEND_VM_SMART_BRANCH(result, 0);
                                ZVAL_BOOL(EX_VAR(opline->result.var), result);
                                ZEND_VM_NEXT_OPCODE();