ID:               31153
 Updated by:       [EMAIL PROTECTED]
 Reported By:      andrea dot busia at axis-sv dot it
-Status:           Open
+Status:           Bogus
 Bug Type:         Arrays related
 Operating System: Linux
 PHP Version:      4.3.10
 New Comment:

Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

Update ZendOptimizer and the problem will go away.


Previous Comments:
------------------------------------------------------------------------

[2004-12-17 15:24:39] andrea dot busia at axis-sv dot it

Description:
------------
When I use foreach on an array the values are wrong. It's very
critical.


Reproduce code:
---------------
<?
$a=array(5,10,15);
foreach($a as $b) var_dump($b);
?>

Expected result:
----------------
int(5)
int(10)
int(15)

Actual result:
--------------
array(2) {
  [0]=>
  int(5)
  [1]=>
  int(0)
}
array(2) {
  [0]=>
  int(10)
  [1]=>
  int(1)
}
array(2) {
  [0]=>
  int(15)
  [1]=>
  int(2)
}



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31153&edit=1

Reply via email to