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

1.1       misho       1: --TEST--
                      2: Test bug #64370 sequential microtime(true) calls
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $i = 0;
                      7: while(100000 > $i++) {
                      8:        $m0 = microtime(true);
                      9:        $m1 = microtime(true);
                     10:        $d = $m1 - $m0;
                     11: 
                     12:        /*echo "$d\n";*/
                     13: 
                     14:        if ($d < 0) {
                     15:                die("failed in {$i}th iteration");
                     16:        }
                     17: }
                     18: echo "ok\n";
                     19: ?>
                     20: ===DONE===
                     21: --EXPECT--
                     22: ok
                     23: ===DONE===

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