[PHP-DEV] Bug #9297 Updated: sprintf ("%f", $foo) crashes with very large $foo. From: cmv <email protected>
Date: 04/30/01

ID: 9297
Updated by: cmv
Reported By: ben <email protected>
Status: Feedback
Bug Type: Strings related
PHP Version: 4.0.4pl1
Assigned To:
Comments:

Works fine for me (RH7 and latest CVS):

[cmv <email protected> cmv]$ echo '<? $foo = 2.2864849511949E+190; settype($foo,"double"); printf("%fn", $foo) ?>' | php
X-Powered-By: PHP/4.0.6-dev
Content-type: text/html

2286484951194899000000000000000000000000000000000000000000000000000000000000000n[cmv <email protected> cmv]

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

[2001-04-30 09:17:45] andi <email protected>
Can you please try the latest CVS or a snapshot from snaps.php.net and let us know if this still happens. I can't reproduce it on redhat 6.2.
Thanks.

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

[2001-02-16 10:34:20] ben <email protected>
[ben <email protected> ben]$ echo '<? $foo = 2.2864849511949E+190; settype($foo,"double"); printf("%fn", $foo) ?>' | php
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html

2286484951194899000000000000000000000000000000000000000000000000000000000000000
Segmentation fault (core dumped)

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

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9297&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>