Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c

From: Date: Tue, 03 May 2005 08:22:43 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3636@lists.php.net to get a copy of this message
Markus Fischer wrote:
Ilia Alshanetsky wrote:
iliaa        Mon May  2 21:30:06 2005 EDT
  Modified files:              (Branch: PHP_4_3)
    /Zend    zend_execute.c   Log:
  MFZE2: Fixed bug #32670 (foreach() does not issue warning on unset array arg)
    http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.48&r2=1.316.2.49&ty=u 
I just recognized that this link doesn't work, gives me the message: File Not Found: /repository/Zend/zend_execute.c,v I tried manually finding the file but the Zend directory has a big "UNUSED BRANCH" with no zend_execute file in it and the other directory, "zend" is empty. Any ideas? - Markus
Silly GUI kids. You probably wants the diffs from .47 to .49 anyway: 1:21am shiny:~/php43> cvs diff -u -r 1.316.2.47 -r 1.316.2.49 Zend/zend_execute.c Index: Zend/zend_execute.c =================================================================== RCS file: /repository/Zend/Attic/zend_execute.c,v retrieving revision 1.316.2.47 retrieving revision 1.316.2.49 diff -u -r1.316.2.47 -r1.316.2.49
--- Zend/zend_execute.c 1 Feb 2005 17:12:38 -0000       1.316.2.47
+++ Zend/zend_execute.c 3 May 2005 01:30:06 -0000       1.316.2.49
@@ -336,6 +336,9 @@ AI_USE_PTR(Ts[result->u.var].var);
                                        }
+                                       if(type == IS_TMP_VAR) {
+                                               value->refcount = value->is_ref = 0;
+                                       }
set_overloaded_property(&Ts[op1->u.var], value TSRMLS_CC);
                                        if (!return_value_used && type == IS_TMP_VAR) {
@@ -2356,6 +2359,7 @@
                                                /* probably redundant */
zend_hash_internal_pointer_reset(fe_ht);
                                        } else {
+                                               zend_error(E_WARNING, "Invalid argument supplied for foreach()");
                                                /* JMP to the end of foreach */
                                                EX(opline) = op_array->opcodes+EX(opline)[1].op2.u.opline_num;
                                                continue;


« previous php.zend-engine.cvs (#3636) next »