#25864 [NEW]: sprintf error

From: Date: Tue, 14 Oct 2003 13:14:13 +0000
Subject: #25864 [NEW]: sprintf error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48973@lists.php.net to get a copy of this message
From: heppevonhambach at web dot de Operating system: linux PHP version: Irrelevant PHP Bug Type: Unknown/Other Function Bug description: sprintf error Description: ------------ looks like sprintf has problems with big numbers Reproduce code: --------------- $n = 1234567890123; $nL = 17; $s = sprintf( "%0{$nL}d",$n ); Expected result: ---------------- 00001234567890123 Actual result: -------------- 00000001912276171 -- Edit bug report at http://bugs.php.net/?id=25864&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25864&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25864&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25864&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25864&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25864&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25864&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25864&r=support Expected behavior: http://bugs.php.net/fix.php?id=25864&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25864&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25864&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25864&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25864&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25864&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25864&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25864&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25864&r=float

« previous php.bugs (#48973) next »