ID: 16497 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Linux 7.2 PHP Version: 4.1.2 New Comment:
08 and 09 are octal numbers, please refer to: http://www.php.net/manual/en/language.types.integer.php for more information. Derick Previous Comments: ------------------------------------------------------------------------ [2002-04-08 12:51:26] [EMAIL PROTECTED] I ran across this problem in an array assignment, but it is reproducible with any variable assignment. PHP doesn't convert the following numeric assignments correctly. $a = 06; $b = 07; $c = 08; $d = 09; $e = 10; print $a; // prints 6 print $b; // prints 7 print $c; // prints 0 print $d; // prints 0 print $e; // prints 10 Thanks, Bill Scheffer FedEx Express (901) 224-4342 [EMAIL PROTECTED] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16497&edit=1
