Edit report at http://bugs.php.net/bug.php?id=54055&edit=1
ID: 54055
User updated by: mr_platelet+jin6vr at fastmail dot fm
Reported by: mr_platelet+jin6vr at fastmail dot fm
Summary: PHP crashes when executing strval when `precision'
setting is very hig
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
Some extra information. (1) When I ran the script,
I used PHP's "-n" switch. (2) This is the "configure"
command I used when building PHP:
--prefix=/usr/local/php/5.3.5 --disable-all --enable-bcmath
Previous Comments:
------------------------------------------------------------------------
[2011-02-20 13:42:16] mr_platelet+jin6vr at fastmail dot fm
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 this bug report at http://bugs.php.net/bug.php?id=54055&edit=1