Annotation of embedaddon/php/Zend/tests/oct_overflow_32bit.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: testing integer overflow (32bit)
                      3: --INI--
                      4: precision=14
                      5: --SKIPIF--
                      6: <?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
                      7: --FILE--
                      8: <?php
                      9: 
                     10: $doubles = array(
                     11:        076545676543223,
                     12:        032325463734,
                     13:        077777797777777,
                     14:        07777777777777977777777777,
                     15:        03333333333333382222222222222,
                     16:        );
                     17: 
                     18: foreach ($doubles as $d) {
                     19:        $l = (double)$d;
                     20:        var_dump($l);
                     21: }
                     22: 
                     23: echo "Done\n";
                     24: ?>
                     25: --EXPECTF--    
                     26: float(4308640384%d)
                     27: float(3545655%d)
                     28: float(262143)
                     29: float(549755813%d)
                     30: float(1884877076%d)
                     31: Done

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