Annotation of embedaddon/php/tests/lang/bug24640.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #24640 (var_export and var_dump can't output large float)
        !             3: --INI--
        !             4: precision=12
        !             5: --FILE--
        !             6: <?php
        !             7: function test($v)
        !             8: {
        !             9:        echo var_export($v, true) . "\n";
        !            10:        var_dump($v);
        !            11:        echo "$v\n";
        !            12:        print_r($v);
        !            13:        echo "\n------\n";
        !            14: }
        !            15: 
        !            16: test(1.7e+300);
        !            17: test(1.7e-300);
        !            18: test(1.7e+79);
        !            19: test(1.7e-79);
        !            20: test(1.7e+80);
        !            21: test(1.7e-80);
        !            22: test(1.7e+81);
        !            23: test(1.7e-81);
        !            24: test(1.7e+319);
        !            25: test(1.7e-319);
        !            26: test(1.7e+320);
        !            27: test(1.7e-320);
        !            28: test(1.7e+321);
        !            29: test(1.7e-321);
        !            30: test(1.7e+324);
        !            31: test(1.7e-324);
        !            32: test(1.7e+1000);
        !            33: test(1.7e-1000);
        !            34: 
        !            35: ?>
        !            36: ===DONE===
        !            37: <?php exit(0); ?>
        !            38: --EXPECTF--
        !            39: 1.7E+300
        !            40: float(1.7E+300)
        !            41: 1.7E+300
        !            42: 1.7E+300
        !            43: ------
        !            44: 1.7E-300
        !            45: float(1.7E-300)
        !            46: 1.7E-300
        !            47: 1.7E-300
        !            48: ------
        !            49: 1.7E+79
        !            50: float(1.7E+79)
        !            51: 1.7E+79
        !            52: 1.7E+79
        !            53: ------
        !            54: 1.7E-79
        !            55: float(1.7E-79)
        !            56: 1.7E-79
        !            57: 1.7E-79
        !            58: ------
        !            59: 1.7E+80
        !            60: float(1.7E+80)
        !            61: 1.7E+80
        !            62: 1.7E+80
        !            63: ------
        !            64: 1.7E-80
        !            65: float(1.7E-80)
        !            66: 1.7E-80
        !            67: 1.7E-80
        !            68: ------
        !            69: 1.7E+81
        !            70: float(1.7E+81)
        !            71: 1.7E+81
        !            72: 1.7E+81
        !            73: ------
        !            74: 1.7E-81
        !            75: float(1.7E-81)
        !            76: 1.7E-81
        !            77: 1.7E-81
        !            78: ------
        !            79: I%s
        !            80: float(I%s)
        !            81: I%s
        !            82: I%s
        !            83: ------
        !            84: 1.69998107421E-319
        !            85: float(1.69998107421E-319)
        !            86: 1.69998107421E-319
        !            87: 1.69998107421E-319
        !            88: ------
        !            89: I%s
        !            90: float(I%s)
        !            91: I%s
        !            92: I%s
        !            93: ------
        !            94: 1.70007988734E-320
        !            95: float(1.70007988734E-320)
        !            96: 1.70007988734E-320
        !            97: 1.70007988734E-320
        !            98: ------
        !            99: I%s
        !           100: float(I%s)
        !           101: I%s
        !           102: I%s
        !           103: ------
        !           104: 1.69958582169E-321
        !           105: float(1.69958582169E-321)
        !           106: 1.69958582169E-321
        !           107: 1.69958582169E-321
        !           108: ------
        !           109: I%s
        !           110: float(I%s)
        !           111: I%s
        !           112: I%s
        !           113: ------
        !           114: 0
        !           115: float(0)
        !           116: 0
        !           117: 0
        !           118: ------
        !           119: I%s
        !           120: float(I%s)
        !           121: I%s
        !           122: I%s
        !           123: ------
        !           124: 0
        !           125: float(0)
        !           126: 0
        !           127: 0
        !           128: ------
        !           129: ===DONE===

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