I do not get the Bus Error (this was fixed last night by Zeev).  And if
you correct the $id bug in this script, it works just fine ... at least on
OSX.

This is from CVS HEAD.

On Thu, 1 Aug 2002, Sulka Haro wrote:

>
> 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;
> >?>
> >
> >....
>
>
>

>---------------------------------------------------------------<
Dan Kalowsky                    "A little less conversation,
http://www.deadmime.org/~dank    a little more action."
[EMAIL PROTECTED]        - "A Little Less Conversation",
[EMAIL PROTECTED]                        Elvis Presley


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to