File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / bug64370_var2.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:05 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--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===

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