Bug #11582 Updated: php segfaults upon array operation
| From: | sniper@php.net | Date: | Fri, 27 Jul 2001 02:38:30 +0000 |
| Subject: | Bug #11582 Updated: php segfaults upon array operation | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61158@lists.php.net to get a copy of this message | ||
ID: 11582
Updated by: sniper
Reported By: lukas@edeal.de
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 4.0.5, 4.0.6
New Comment:
Fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 08:11:04] lukas@edeal.de
yes, it does happen with 4.0.6 too.
but, i also tried 4.0.7-dev (CVS as of 1:30pm CEST) while i was at it.
i could not get that to barf with the test script.
-lukas
------------------------------------------------------------------------
[2001-07-21 18:49:58] andy@php.net
Does this happen with 4.0.6?
------------------------------------------------------------------------
[2001-06-20 16:41:40] sniper@php.net
oops..
------------------------------------------------------------------------
[2001-06-20 16:41:27] sniper@php.net
status -> feedback
------------------------------------------------------------------------
[2001-06-20 15:05:37] lukas@edeal.de
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
------------------------------------------------------------------------
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