ID: 11582
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 4.0.5
New Comment:
Does this happen with 4.0.6?
Previous Comments:
------------------------------------------------------------------------
[2001-06-20 16:41:40] [EMAIL PROTECTED]
oops..
------------------------------------------------------------------------
[2001-06-20 16:41:27] [EMAIL PROTECTED]
status -> feedback
------------------------------------------------------------------------
[2001-06-20 15:05:37] [EMAIL PROTECTED]
hi,
it took some time to isolate the problem, but here is the
testcase. the segfault is not triggered if PHP was compiled --enable-debug version, in
which case it complains
that it "Cannot use scalar value as an array".
<?php
header("Content-type: text/plain");
$arr[data] = "scalar";
for ($i=0;$i < 200; $i++) {
print $i."\n";
// trying to use scalar value as an array
$arr[data][entries][] = array();
}
?>
i hope this helps.
regards,
lukas
------------------------------------------------------------------------
[2001-06-20 12:38:49] [EMAIL PROTECTED]
status -> feedback
------------------------------------------------------------------------
[2001-06-20 11:34:39] [EMAIL PROTECTED]
please send the shortest possible testcase that shows your problem!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11582
Edit this bug report at http://bugs.php.net/?id=11582&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]