Bug #53308 [Opn->Bgs]: base_convert having issues with leading zeros

From: Date: Sun, 14 Nov 2010 06:37:59 +0000
Subject: Bug #53308 [Opn->Bgs]: base_convert having issues with leading zeros
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156012@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53308&edit=1 ID: 53308 Updated by: rasmus@php.net Reported by: phoenix at ailesdefeu dot com Summary: base_convert having issues with leading zeros -Status: Open +Status: Bogus Type: Bug Package: Math related PHP Version: 5.3SVN-2010-11-14 (SVN) Block user comment: N New Comment: What do you mean? Numbers with leading 0's are octal, so 082000 is not a valid number. Previous Comments: ------------------------------------------------------------------------ [2010-11-14 07:36:31] phoenix at ailesdefeu dot com Description: ------------ base_convert having issues with leading zeros Test script: --------------- echo base_convert(82000,10,16); echo base_convert(082000,10,16); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53308&edit=1

« previous php.bugs (#156012) next »