From: Operating system: Linux PHP version: 5.3.5 Package: Reproducible crash Bug Type: Bug Bug description:PHP crashes when executing strval when `precision' setting is very hig
Description: ------------ The script below crashes while executing strval. Test script: --------------- <?php for($i = 500; $i <= 1074; $i++) { ini_set('precision', $i); print "$i\n"; strval(pow(2, -1074)); } Expected result: ---------------- I expect all the integers from 500 to 1074 to be printed, each on a separate line. Actual result: -------------- This is the actual output of the script on my system: 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 Segmentation fault -- Edit bug report at http://bugs.php.net/bug.php?id=54055&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54055&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54055&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54055&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54055&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54055&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54055&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54055&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54055&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54055&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54055&r=support Expected behavior: http://bugs.php.net/fix.php?id=54055&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54055&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54055&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54055&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54055&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54055&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54055&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54055&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54055&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54055&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54055&r=mysqlcfg