ID:               21523
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Verified
 Bug Type:         Strings related
 Operating System: Windows 2000
 PHP Version:      4.3.0
 New Comment:

I have tried to reproduce this error on windows and linux:

Windows XP professional + php 4.3.0:
bug reproduced
FATAL:  emalloc():  Unable to allocate -207 bytes

Linux Redhat 7.0 + php 4.3.0
bug NOT reproduced. the script works well.

only windows systems seems to be affected by the bug


Previous Comments:
------------------------------------------------------------------------

[2003-01-09 06:15:25] [EMAIL PROTECTED]

Verified under WIN32.



------------------------------------------------------------------------

[2003-01-09 06:05:50] [EMAIL PROTECTED]

I can't reproduce this error under Linux, FreeBSD.

------------------------------------------------------------------------

[2003-01-08 13:05:47] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=21523&edit=1

Reply via email to