From:             oswald at welho dot com
Operating system: Windows 2000
PHP version:      4.3.3
PHP Bug Type:     Arrays related
Bug description:  Array can't behave.

Description:
------------
Array can't fetch data with certain keys. No changes made in any important
file. Tested also with version 4.3.2, same result.

Reproduce code:
---------------
$a = array('nothing', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
'11', '12');
$b = $a[7];
$c = $a[07];
$d = $a[8];
$e = $a[08];
$f = $a[9];
$g = $a[09];
$h = $a[10];
$i = $a[10];
print("$b = $c, $d = $e, $f = $g, $h = $i"); // The print should be 7=7,
8=8, 9=9, 10=10 but no.

Expected result:
----------------
Array can't fetch data when key is 08 or 09. But when key is 07 or 10 it
can. With numbers 7,8,9 and 10 it works nicely. If this behaviour is
completely normal please feel free to send some insults to me.

Actual result:
--------------
Result is nothing.

-- 
Edit bug report at http://bugs.php.net/?id=25531&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25531&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25531&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25531&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25531&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25531&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25531&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25531&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25531&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25531&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25531&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25531&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25531&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25531&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25531&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25531&r=gnused

Reply via email to