Bug #13588: Crash when making a normal string to an array

From: Date: Sun, 07 Oct 2001 20:39:39 +0000
Subject: Bug #13588: Crash when making a normal string to an array
Groups: php.dev 
Request: Send a blank email to php-dev+get-67502@lists.php.net to get a copy of this message
From: roelkw@xs4all.nl Operating system: WinXP build 2600 (final) PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: Crash when making a normal string to an array When you create a variable and make it a string, like this: $test = "hey"; and later on I change this to an array, like this: $i++; while ($row = mysql_fetch_array($res)) { $test[$i]["id"] = $row["id"]; $test[$i]["name"] = $row["name"]; $i++; } Then PHP/Apache crashes on this line: $test[$i]["name"] = $row["name"]; If I comment that line out, there's no crash! Weird, isn't it? -- Edit bug report at: http://bugs.php.net/?id=13588&edit=1

« previous php.dev (#67502) next »