#18921 [Opn->Bgs]: integer values 08, 09 convert to string as 0

From: Date: Thu, 15 Aug 2002 17:59:36 +0000
Subject: #18921 [Opn->Bgs]: integer values 08, 09 convert to string as 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16922@lists.php.net to get a copy of this message
ID: 18921 Updated by: zeev@php.net Reported By: ben@parcelrecords.com -Status: Open +Status: Bogus Bug Type: Strings related Operating System: Windows 2000 PHP Version: 4.2.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php integers that begin with leading zeros are treated as octal numbers. Since 08 and 09 contain digits which are invalid in the octal base, they're reduced to zeros. Previous Comments: ------------------------------------------------------------------------ [2002-08-15 13:54:47] ben@parcelrecords.com Ok, <? echo 01, 02, 03, 04, 05, 06, 07, 08, 09, 10; ?> prints 12345670010 instead of 12345678910 8 and 9 are now zeroes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18921&edit=1

« previous php.bugs (#16922) next »