PHP HANGS ON NUMERIC VALUE 2.2250738585072011E-308
Yesterday, I was working on a very huge database project at vapsoft Technologies, I was so scary to see PHP hangs on numeric value 2.2250738585072011E-30. More than 26% of the projects are running on the PHP language and maximum numbers of software engineers are working on PHP platform. Till now I was not aware of this type of error.
I face this type of strangle bug in PHP: this code is responsible for an infinite loop:
<?php $d = 2.2250738585072011e-308; ?>
I have tested this type of error in many ways like no. without scientific notation — 324 floating places. You can hit this bug on Linux (PHP 5.3.2-1ubuntu4.5) and on Windows (PHP 5.3.1 XAMPP 1.7.3).
You can’t face the problem when you pass the string, 2.2250738585072011e-308 but you will face the problem when you treated this string as a numeric value.
Now, after a large amount of stuff I found that PHP development team has released PHP 5.3.5 and 5.2.17. This version resolves a vital issue, reported as PHP bug #53632 and CVE-2010-4645, where the double-string conversions could cause the PHPinterpreter to hang on systems that use x87 FPU registers. The problem is known to only affect PHP processes x86 32-bit,regardless of whether the housing system PHP is 32 bits or 64bits. You can test if the system is affected by the execution of this script from the command line.
Vapsoft is a fast arising web hosting company. Something which makes us stand apart in the crowd together of hosting companies which are shooting up every day and every second is our dedication to render awesome services and committed client support....