ID:               29475
 Updated by:       [EMAIL PROTECTED]
 Reported By:      f dot braem at skynet dot be
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Win98
 PHP Version:      5.0.0
 New Comment:

You should open up problems with Zend products on the 
zend site here:http://zend.com/support/




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

[2004-07-31 23:06:47] f dot braem at skynet dot be

Description:
------------
When foreach is used on a class property, Apache crashes in the Zend
Optimizer.

When you assign the property to a variable and use that variable in the
foreach, it doesn't crash.


Reproduce code:
---------------
<?php
class Test
{
  public $data;
  
  function __construct()
  {
    $this->data = array();
  }
}

$t = new Test();
$t->data = array('en' => 'english', 'nl' => 'dutch');
foreach($t->data as $key => $item)
{
  print_r($key);
  echo '<br />';
  print_r($item);
  echo '<br />';
}
?>

Expected result:
----------------
en
english
nl
dutch


Actual result:
--------------
Crash dump:

APACHE caused an invalid page fault in
module ZENDOPTIMIZER.DLL at 015f:05e76394.
Registers:
EAX=dc8bcf8b CS=015f EIP=05e76394 EFLGS=00010246
EBX=089ddbd0 SS=0167 ESP=037cf8b8 EBP=037cfb94
ECX=037cf8dc DS=0167 ESI=08aeb678 FS=8a27
EDX=05e86962 ES=0167 EDI=037cfb40 GS=0000
Bytes at CS:EIP:
ff 40 08 c3 90 90 90 90 90 90 90 90 c7 05 ac 91 
Stack dump:
05e7a541 dc8bcf8b 08aeb044 08aeb678 05e7673a 037cfb40 08aeb678 08aeb044
089ddbd0 05e86962 037cf908 bff7a541 08ae0000 bff7a558 08ae0000 00000000




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


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

Reply via email to