Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11908 invoked from network); 5 Sep 2014 18:05:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2014 18:05:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain realplain.com does not designate 216.33.127.82 as permitted sender) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 216.33.127.82 mta31.charter.net Solaris 10 1203 Received: from [216.33.127.82] ([216.33.127.82:45858] helo=mta31.charter.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/B5-12208-77BF9045 for ; Fri, 05 Sep 2014 14:05:44 -0400 Received: from imp10 ([10.20.200.15]) by mta31.charter.net (InterMail vM.8.01.05.02 201-2260-151-103-20110920) with ESMTP id <20140905180541.QQQM6769.mta31.charter.net@imp10>; Fri, 5 Sep 2014 14:05:41 -0400 Received: from mtaout006.msg.strl.va.charter.net ([68.114.190.31]) by imp10 with smtp.charter.net id nW5h1o0030h5dSU05W5hoZ; Fri, 05 Sep 2014 14:05:41 -0400 Received: from impout003 ([68.114.189.18]) by mtaout006.msg.strl.va.charter.net (InterMail vM.9.00.013.00 201-2473-140) with ESMTP id <20140905180541.TASI12712.mtaout006.msg.strl.va.charter.net@impout003>; Fri, 5 Sep 2014 13:05:41 -0500 Received: from pc1 ([96.35.251.86]) by impout003 with charter.net id nW5g1o00M1sc0so01W5gaq; Fri, 05 Sep 2014 13:05:41 -0500 X-Authority-Analysis: v=2.1 cv=EslcrEsA c=1 sm=1 tr=0 a=Is5gsZaFXO8aPum+t7Tz+g==:117 a=Is5gsZaFXO8aPum+t7Tz+g==:17 a=hOpmn2quAAAA:8 a=hcnBy3hzcX0A:10 a=FGT3s5bFCrIA:10 a=WUgRJF_wMoEA:10 a=N659UExz7-8A:10 a=BCPeO_TGAAAA:8 a=jVuJwaeT_Ci-hZGTx6QA:9 a=pILNOxqGKmIA:10 Message-ID: To: "Anatol Belski" Cc: , "Stas Malyshev" , "Pierre Joye" References: <5404DBD1.8050604@sugarcrm.com> <687BE274F5C24DE1A42E3484C7E52B6C@pc1> <49fb94d5e1c8626544d7235492d9ae0b.squirrel@webmail.klapt.com> Date: Fri, 5 Sep 2014 13:05:40 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Subject: Re: [PHP-DEV] Re: [INTERNALS-WIN] [PATCH] Microsecond resolution and accuracy on Windows From: php_lists@realplain.com ("Matt Wilmas") Hi Anatol, ----- Original Message ----- From: "Anatol Belski" Sent: Tuesday, September 02, 2014 > Unfortunately that's not a PR so I cannot comment there directly, so I'd > leave a couple of the comments to the code here: It looks like there can be "commit comments?" *shrug* In the future, should a Pull Request usually be created? I didn't know if that sends some sort of "Hey, add this!" notification, or simply makes it show up as a PR. > - GetSystemTimeAdjustment can be disabled by some other app, so it should > be called each time when gettimeofday() is called I don't know what you mean by "disabled." You mean the adjustment changing? I sort of already alluded to not thinking it's necessary to check it each time gettimeofday() is called -- I was already thinking of a much more complicated method last year involving that stuff, before finding this spring that Vista/7 aren't very finely adjustable like XP regarding *setting* SystemTimeAdjustment... > - GetSystemTimeAdjustment could fail, so return value should have be > checked I know it could fail (though not sure why), technically, but I don't know a reason for checking. time_update_rate is already initialized in time.c. > - global variables should be moved into the globals struct Why? Just because? I thought it's fine to use true globals when it's safe to (I've seen it in another place), like function pointers. No threading issues when they're only modified during startup (1 thread). > Matt, I really think it's too short in time to take this in. I would > suggest to leave this as is for 5.4 and 5.5 and stabilize to suggest to > 5.6.1 or master after the good testing. It were probably applicable to > win7 then. I was glad to see Stas' reply to "let's see for 5.4" to, well, see if there's any other problems found. :-) There's that uniqid() bug/issue like I said. 5.4 is also the last "official" release (with PGO) for Windows XP. > Thanks > > Anatol Thanks again for feedback, Matt