Edit report at http://bugs.php.net/bug.php?id=53632&edit=1
ID: 53632 Comment by: aquilax at gmail dot com Reported by: exploringbinary at gmail dot com Summary: PHP hangs on numeric value 2.2250738585072011e-308 Status: Assigned Type: Bug Package: Math related PHP Version: 5.3.4 Assigned To: dmitry Block user comment: N Private report: N New Comment: It hangs on Debian: aqui...@zelda /tmp> php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/adodb.so' - /usr/lib/php5/20090626+lfs/adodb.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 5.3.3-6 with Suhosin-Patch (cli) (built: Dec 7 2010 18:23:49) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH aqui...@zelda /tmp> cat t.php <?php $d = 2.2250738585072011e-308; ?> aqui...@zelda /tmp> time php t.php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/adodb.so' - /usr/lib/php5/20090626+lfs/adodb.so: cannot open shared object file: No such file or directory in Unknown on line 0 ^CCommand terminated by signal 2 7.55user 0.02system 0:07.61elapsed 99%CPU (0avgtext+0avgdata 36720maxresident)k 0inputs+0outputs (0major+2620minor)pagefaults 0swaps Previous Comments: ------------------------------------------------------------------------ [2011-01-04 08:31:04] yuv dot adm at gmail dot com Does not reproduce on a mac, confirmed: mac:junk yuval$ cat p.php <?php echo "a"; $d = 2.2250738585072011e-308; echo "b\n"; mac:junk yuval$ php p.php ab mac:junk yuval$ php -v PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies ------------------------------------------------------------------------ [2011-01-04 06:48:58] cswarth at gmail dot com Doesn't happen on a mac. $ php -v PHP 5.3.1 (cli) (built: Feb 11 2010 02:32:22) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies $ php -r "print 2.2250738585072011e-308;" 2.2250738585072E-308 ------------------------------------------------------------------------ [2011-01-02 16:52:43] exploringbinary at gmail dot com I also get the same problem on Linux (PHP Version 5.3.2-1ubuntu4.5). ------------------------------------------------------------------------ [2011-01-02 16:49:48] paj...@php.net Dmitry, can you take a look at it please? ------------------------------------------------------------------------ [2011-01-02 16:44:38] exploringbinary at gmail dot com (Remove 2.2250738585072012e-308 from my list of examples; it does NOT map to the same floating-point number as 2.2250738585072011e-308 -- when converted correctly!) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=53632 -- Edit this bug report at http://bugs.php.net/bug.php?id=53632&edit=1