Annotation of embedaddon/php/ext/standard/tests/general_functions/bug27678.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Bug #27678 (number_format() crashes with large numbers)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: number_format(1e80, 0, '', ' ');
                      7: number_format(1e300, 0, '', ' ');
                      8: number_format(1e320, 0, '', ' ');
1.1.1.2 ! misho       9: $num = number_format(1e1000, 0, '', ' ');
        !            10: var_dump(strlen($num) == 3); // $num == 'inf'
1.1       misho      11: 
                     12: echo "Done\n";
                     13: ?>
                     14: --EXPECT--     
1.1.1.2 ! misho      15: bool(true)
1.1       misho      16: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>