Bug #11582 Updated: php segfaults upon array operation

From: Date: Sun, 22 Jul 2001 12:11:04 +0000
Subject: Bug #11582 Updated: php segfaults upon array operation
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60588@lists.php.net to get a copy of this message
ID: 11582 User updated by: lukas@edeal.de Reported By: lukas@edeal.de Status: Open Bug Type: Reproducible crash Operating System: linux Old PHP Version: 4.0.5 PHP Version: 4.0.5, 4.0.6 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2001-06-20 12:38:49] sniper@php.net status -> feedback ------------------------------------------------------------------------ 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

« previous php.dev (#60588) next »