From: Dmitry Stogov Date: Thu, 1 Feb 2007 16:38:15 +0000 (+0000) Subject: Removed dead code X-Git-Tag: RELEASE_1_0_0RC1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f994b102c7bb37b56b4e9d5e279ad3424a9fd881;p=php Removed dead code --- diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index 0505eab3dd..1a100cb59a 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -3228,7 +3228,7 @@ ZEND_VM_HANDLER(77, ZEND_FE_RESET, CONST|TMP|VAR|CV, ANY) } } - if (ce && ce->get_iterator) { + if (OP1_TYPE != IS_TMP_VAR && ce && ce->get_iterator) { iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC); if (iter && !EG(exception)) { diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index 68b5b11531..24618c57c0 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -2171,7 +2171,7 @@ static int ZEND_FE_RESET_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS) } } - if (ce && ce->get_iterator) { + if (IS_CONST != IS_TMP_VAR && ce && ce->get_iterator) { iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC); if (iter && !EG(exception)) { @@ -4786,7 +4786,7 @@ static int ZEND_FE_RESET_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS) } } - if (ce && ce->get_iterator) { + if (IS_TMP_VAR != IS_TMP_VAR && ce && ce->get_iterator) { iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC); if (iter && !EG(exception)) { @@ -8006,7 +8006,7 @@ static int ZEND_FE_RESET_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS) } } - if (ce && ce->get_iterator) { + if (IS_VAR != IS_TMP_VAR && ce && ce->get_iterator) { iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC); if (iter && !EG(exception)) { @@ -20575,7 +20575,7 @@ static int ZEND_FE_RESET_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS) } } - if (ce && ce->get_iterator) { + if (IS_CV != IS_TMP_VAR && ce && ce->get_iterator) { iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC); if (iter && !EG(exception)) {