Bug #11582 Updated: php segfaults upon array operation
| From: | andy@php.net | Date: | Sat, 21 Jul 2001 22:49:58 +0000 |
| Subject: | Bug #11582 Updated: php segfaults upon array operation | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60500@lists.php.net to get a copy of this message | ||
ID: 11582
Updated by: andy
Reported By: lukas@edeal.de
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] 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
------------------------------------------------------------------------
[2001-06-20 12:38:49] sniper@php.net
status -> feedback
------------------------------------------------------------------------
[2001-06-20 11:34:39] thies@php.net
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