summaryrefslogtreecommitdiff
path: root/ext/standard/tests/bug64370_var2.phpt
blob: d0d3590ea7b76bbf66980f1993d36a54225af09c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Test bug #64370 sequential microtime(true) calls
--FILE--
<?php

$i = 0;
while(100000 > $i++) {
	$m0 = microtime(true);
	$m1 = microtime(true);
	$d = $m1 - $m0;

	/*echo "$d\n";*/

	if ($d < 0) {
		die("failed in {$i}th iteration");
	}
}
echo "ok\n";
?>
===DONE===
--EXPECT--
ok
===DONE===