|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-02-16 10:34 UTC] ben at bpeter dot org
[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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 22:00:01 2025 UTC |
Works fine for me (RH7 and latest CVS): [cmv@sunniva 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@sunniva cmv]It does something strange for me: [root@mars lib]# /usr/local/bin/php -q <? $foo = 2.2864849511949E+190; settype($foo,"double"); printf("%f\nn", $foo) ?> 2286484951194899000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022864849511948990000000000000000000000000000000000000000000000000000000000000000. This is with 4.0.6-dev (latest CVS (22/05/2001)). Derick