Re: Re: solaris8 + php4.2.2 = memory corruption?

From: Date: Thu, 01 Aug 2002 21:47:20 +0000
Subject: Re: Re: solaris8 + php4.2.2 = memory corruption?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-86438@lists.php.net to get a copy of this message
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." dank-nos@mpa-deadmime.org - "A Little Less Conversation", kalowsky@php.net Elvis Presley

« previous php.dev (#86438) next »