Re: Re: solaris8 + php4.2.2 = memory corruption?
| From: | Sulka Haro | Date: | Thu, 01 Aug 2002 20:41:05 +0000 |
| Subject: | Re: Re: solaris8 + php4.2.2 = memory corruption? | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86436@lists.php.net to get a copy of this message | ||
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; ?> ....