From:             
Operating system: Windows
PHP version:      5.3.4
Package:          Math related
Bug Type:         Bug
Bug description:PHP hangs on numeric value 2.2250738585072011e-308

Description:
------------
If I assign the value 2.2250738585072011e-308 to a variable, e.g. $d =
2.2250738585072011e-308, PHP hangs (loops). I am using PHP 5.3.1 XAMPP
1.7.3 on Windows.



2.2250738585072011e-308 represents the largest subnormal double-precision
floating-point number,
0.1111111111111111111111111111111111111111111111111111 x 2^-1022.
Interestingly, nearby decimal literals 2.2250738585072008e-308,
2.2250738585072009e-308, 2.2250738585072010e-308 and
2.2250738585072012e-308 -- which all convert to the same floating-point
value -- do not cause this problem.







Test script:
---------------
<?php $d = 2.2250738585072011e-308; ?>

Expected result:
----------------
No Hang.

Actual result:
--------------
Hang.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53632&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53632&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53632&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53632&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53632&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53632&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53632&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53632&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53632&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53632&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53632&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53632&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53632&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53632&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53632&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53632&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53632&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53632&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53632&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53632&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53632&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53632&r=mysqlcfg

Reply via email to