summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug73837.phpt
blob: 220deb6121fee57d1062f53496b15915d567d2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #73837: Milliseconds in DateTime()
--FILE--
<?php
$collect = [];

for ( $i = 0; $i < 1000; $i++ )
{
	$a = new DateTime();
	$key = "s" . $a->format( "u" );
	$collect[$key] = true;
}

echo ( count( $collect ) > 990 ) ? "microseconds differ\n" : "microseconds do not differ enough\n";
?>
--EXPECT--
microseconds differ