From: [EMAIL PROTECTED] Operating system: Windows 2000 / Apache 1.3.27 PHP version: 4.3.0 PHP Bug Type: Strings related Bug description: number_format causes call to emalloc for a negative amount of memory
When the following line is run: echo number_format(2, 2678); The following error appears in the Apache error log: FATAL: emalloc(): Unable to allocate -1112 bytes -259 and -123 have also appeared. Clearly I accidentally used number_format in the reverse direction that I meant to. However, it seems like whatever is requesting memory for number_format is experiencing integer overflow. That doesn't seem right. -- Edit bug report at http://bugs.php.net/?id=21523&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21523&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21523&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21523&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21523&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21523&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21523&r=support Expected behavior: http://bugs.php.net/fix.php?id=21523&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21523&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21523&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21523&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21523&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21523&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21523&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21523&r=gnused