PHP 4.0 Bug #9297: sprintf ("%f", $foo) crashes with very large $foo.
| From: | ben at bpeter dot org | Date: | Fri, 16 Feb 2001 15:34:20 +0000 |
| Subject: | PHP 4.0 Bug #9297: sprintf ("%f", $foo) crashes with very large $foo. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46737@lists.php.net to get a copy of this message | ||
From: ben@bpeter.org
Operating system: RH Linux 7.0, i386
PHP version: 4.0.4pl1
PHP Bug Type: Strings related
Bug description: sprintf ("%f", $foo) crashes with very large $foo.
[ben@home ben]$ echo '<? $foo = 2.2864849511949E+190; settype($foo,"double");
printf("%f\n", $foo) ?>' | php
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
2286484951194899000000000000000000000000000000000000000000000000000000000000000
Segmentation fault (core dumped)
--
Edit Bug report at: http://bugs.php.net/?id=9297&edit=1