From: Dmitry Stogov Date: Thu, 1 Feb 2007 16:23:28 +0000 (+0000) Subject: Removed dead code X-Git-Tag: php-5.2.1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44297ddea87236c97ce39df4fc9079dd7041e408;p=php Removed dead code --- diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index fcc52c0a4e..a5e117daf0 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -3137,7 +3137,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 ee53a7455c..c91c9f4083 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -2186,7 +2186,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)) { @@ -4727,7 +4727,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)) { @@ -7858,7 +7858,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)) { @@ -19919,7 +19919,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)) {