PHP 4.0 Bug #7810: Wrong array-index interpretation

From: Date: Tue, 14 Nov 2000 15:15:30 +0000
Subject: PHP 4.0 Bug #7810: Wrong array-index interpretation
Groups: php.dev 
Request: Send a blank email to php-dev+get-38074@lists.php.net to get a copy of this message
From: bram@famvanleur.myweb.nl Operating system: Windows 98 PHP version: 4.0.2 PHP Bug Type: Arrays related Bug description: Wrong array-index interpretation The following script acts strange (no crash :). <? $some[1] = "ONE"; $some[02] = "TWO"; $some[07] = "SEVEN"; $some[08] = "EIGHT"; $some[09] = "NINE"; Print $some[1]; Print $some[2]; Print $some[7]; Print $some[8]; Print $some[09]; ?> I can't realy understand why $some[7] is correctly interpreted and $some[8] isn't. (in other words. Print $some[7] shows SEVEN and Print $some[8] doesn't print anything at all. I would be really pleased if you could respond in anyway about this thingy. Greets, Bram van Leur (NL) -- Edit Bug report at: http://bugs.php.net/?id=7810&edit=1

« previous php.dev (#38074) next »