Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11282 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54851 invoked by uid 1010); 16 Jul 2004 13:05:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54827 invoked from network); 16 Jul 2004 13:05:40 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 16 Jul 2004 13:05:40 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6GD5de1015384 for ; Fri, 16 Jul 2004 09:05:40 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6GD5da07349 for ; Fri, 16 Jul 2004 09:05:39 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i6GD5c7m002339 for ; Fri, 16 Jul 2004 14:05:38 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i6GD5cg8002338 for internals@lists.php.net; Fri, 16 Jul 2004 14:05:38 +0100 Date: Fri, 16 Jul 2004 14:05:38 +0100 To: internals@lists.php.net Message-ID: <20040716130538.GB29555@redhat.com> Mail-Followup-To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [PATCH] time/001.phpt fix From: jorton@redhat.com (Joe Orton) There's no reason why gettimeofday() shouldn''t return the same time in successive calls; this test fails spuriously on Linux/x86_64 (which has a particularly fast gettimeofday() implementation). --- ext/standard/tests/time/001.phpt 23 May 2003 20:56:33 -0000 1.4.2.2 +++ ext/standard/tests/time/001.phpt 16 Jul 2004 12:50:13 -0000 @@ -17,7 +17,7 @@ for ($i=1;$i<=100000;$i++) { list($micro,$time)=explode(" ",microtime()); - if ($time > $last_t || ($time == $last_t && $micro > $last_m)) { + if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) { $passed++; } else if ($failed++ <=10) { $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";