Annotation of embedaddon/php/ext/standard/tests/serialize/003.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: unserialize() floats with E notation (#18654)
                      3: --INI--
                      4: precision=12
                      5: serialize_precision=100
                      6: --FILE--
                      7: <?php 
                      8: foreach(array(1e2, 5.2e25, 85.29e-23, 9e-9) AS $value) {
                      9:        echo ($ser = serialize($value))."\n";
                     10:        var_dump(unserialize($ser));
                     11:        echo "\n";
                     12: }
                     13: ?>
                     14: --EXPECTREGEX--
                     15: d:100;
                     16: float\(100\)
                     17: 
                     18: d:5[0-9]*;
                     19: float\(5\.2E\+25\)
                     20: 
                     21: d:8\.52[89][0-9]+E-22;
                     22: float\(8\.529E-22\)
                     23: 
                     24: d:8\.[9]*[0-9]*E-9;
                     25: float\(9\.0E-9\)

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