summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-08-18 16:47:02 +0000
committerfoobar <sniper@php.net>2001-08-18 16:47:02 +0000
commitd3aff0f6ee3a565904b0b990e95bbe43aab440d2 (patch)
tree88554cc373b5582f1b118fcdf880f5f2f1c9a924
parenta0bf4ac47deacd519b9be7e551a68ca6b4efb708 (diff)
downloadphp-git-d3aff0f6ee3a565904b0b990e95bbe43aab440d2.tar.gz
make this test work.
-rw-r--r--ext/standard/tests/time/001.phpt9
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";
?>