Skip to content

Commit d3aff0f

Browse files
author
foobar
committed
make this test work.
1 parent a0bf4ac commit d3aff0f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ext/standard/tests/time/001.phpt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ microtime() function
66
<?php
77
$passed = 0;
88
$failed = 0;
9-
for ($i=1;$i<=100000;$i++) {
9+
$last = 0;
10+
11+
set_time_limit(0);
12+
13+
for ($i=1;$i<=100000;$i++) {
1014
list($micro,$time)=explode(" ",microtime());
1115
$add=$micro+$time;
1216
$add<$last ? $failed++: $passed++;
13-
$last=$add; }
17+
$last=$add;
18+
}
1419
echo "Passed: ".$passed."\n";
1520
echo "Failed: ".$failed."\n";
1621
?>

0 commit comments

Comments
 (0)