From: [EMAIL PROTECTED]
Operating system: redhat 6.2
PHP version: 4.1.2
PHP Bug Type: Arrays related
Bug description: Segmentation fault
try the follow code, it works on 4.0.6 but "Segmentation fault (core
dumped)" on CGI version and give no error message (and appear to keep
executing the code few more times on other httpd child process too) on
dynamic apache module version.
i've memory limited to 8M, and it's fine when for lopp as "$i<8000".
<?php
$file = "-----";
for ($i = 0; $i<9000 ; $i++) {
$result_array["one"][$i] = $file;
$result_array["two"][$i] = $file;
$result_array["three"][$i] = $file;
$result_array["four"][$i] = $file;
$result_array["five"][$i] = $file;
$result_array["six"][$i] = $file;
$result_array["seven"][$i] = $file;
$result_array["eight"][$i] = $file;
}
echo "done<BR>";
?>
--
Edit bug report at http://bugs.php.net/?id=16149&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16149&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16149&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16149&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16149&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16149&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16149&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16149&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16149&r=submittedtwice