Bug #16497 Updated: Improper Numeric Conversion (08, 09)
| From: | derick@php.net | Date: | Mon, 08 Apr 2002 16:53:36 +0000 |
| Subject: | Bug #16497 Updated: Improper Numeric Conversion (08, 09) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4363@lists.php.net to get a copy of this message | ||
ID: 16497
Updated by: derick@php.net
Reported By: ws13461@aod.fedex.com
-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] ws13461@aod.fedex.com
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
ws13461@aod.fedex.com
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16497&edit=1