diff options
author | foobar <sniper@php.net> | 2001-08-18 16:47:02 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-08-18 16:47:02 +0000 |
commit | d3aff0f6ee3a565904b0b990e95bbe43aab440d2 (patch) | |
tree | 88554cc373b5582f1b118fcdf880f5f2f1c9a924 | |
parent | a0bf4ac47deacd519b9be7e551a68ca6b4efb708 (diff) | |
download | php-git-d3aff0f6ee3a565904b0b990e95bbe43aab440d2.tar.gz |
make this test work.
-rw-r--r-- | ext/standard/tests/time/001.phpt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 004a498bac..0f08cb21bb 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -6,11 +6,16 @@ microtime() function <?php $passed = 0; $failed = 0; -for ($i=1;$i<=100000;$i++) { +$last = 0; + +set_time_limit(0); + +for ($i=1;$i<=100000;$i++) { list($micro,$time)=explode(" ",microtime()); $add=$micro+$time; $add<$last ? $failed++: $passed++; - $last=$add; } + $last=$add; +} echo "Passed: ".$passed."\n"; echo "Failed: ".$failed."\n"; ?> |