From:             MichaelGlazer at quickenloans dot com
Operating system: winxp
PHP version:      4.3.4
PHP Bug Type:     Scripting Engine problem
Bug description:  array values are ignored wheb beginning with a 0 number

Description:
------------
Creating an array with hardcoded number values beginning with a number 0
does not save anything beyond the 0.



This is when done outside of any quotes, single or double.



It works fine when quotes are added to these numbers.

Reproduce code:
---------------
$a=array(

        1980,

        0891

);



print_r($a);

Expected result:
----------------
Array

        (

            [0] => 1980

            [1] => 0891

        )





Actual result:
--------------
Array

        (

            [0] => 1980

            [1] => 0

        )





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

Reply via email to