On Mac OS X, php 4.2.1 terminates without output with the given example.
Running a copy of PHP 4.3.0 CLI I updated/compiled from CVS today, the output is "97Bus error". Anyone with enough info to say what's similar to both Solaris and OS X? sulka At 19:58 +0300 1.8.2002, Anti Veeranna wrote: >I finally tracked this down and it turned out to be a bug >in the code. I also was mistaken when I said that the >code works in 4.1.2/Solaris. It didn't. > >To make a long story short: > ><?php >$foo = array( > "97" => "97", >); >$str = ""; >foreach($foo as $id => $id) >// ^^^^^^^^^^ >{ > $str .= $foo[$id]; >}; >print $str; >?> > >.... -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php