Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56930 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62563 invoked from network); 14 Dec 2011 23:25:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2011 23:25:43 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:43479] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/00-61765-57039EE4 for ; Wed, 14 Dec 2011 18:25:41 -0500 Received: by wgbdt13 with SMTP id dt13so2423565wgb.11 for ; Wed, 14 Dec 2011 15:25:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cOewZctt08anRMpXOnuIKyhNO6hypJFWkKL6u9M5EUA=; b=KHyJGw3DGU0/mfLESsn/rme9KbgttWhxIvWObZoge296kkiz3i0j6ASrP1nVPzrxeZ 38m2Y9nNiG2wPgY0kOJsBOxD18fouUpNzH2ggWTuHGWOYZb0Wd6vaa3mxBwNQr5p47oN LnM4Xm0RlAjwVcoCR3mbAwD/aXbYmy+ptNAcc= Received: by 10.227.208.129 with SMTP id gc1mr680357wbb.4.1323905138640; Wed, 14 Dec 2011 15:25:38 -0800 (PST) Received: from [192.168.1.26] (161.red-80-28-67.adsl.dynamic.ccgg.telefonica.net. [80.28.67.161]) by mx.google.com with ESMTPS id gg1sm6381868wbb.17.2011.12.14.15.25.36 (version=SSLv3 cipher=OTHER); Wed, 14 Dec 2011 15:25:37 -0800 (PST) Message-ID: <4EE93166.3060406@gmail.com> Date: Thu, 15 Dec 2011 00:29:42 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Oleg Oshmyan CC: Will Fitch , Stas Malyshev , Derick Rethans , PHP Developers Mailing List References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> <1C397FE3-76E2-473B-B47F-194DAF3ACB39@inbox.lv> <4EE91556.3040909@sugarcrm.com> <4EE922F4.40602@gmail.com> <3E25986A-8E61-4D63-BC07-48464E63F302@inbox.lv> In-Reply-To: <3E25986A-8E61-4D63-BC07-48464E63F302@inbox.lv> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Local time zone From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) On 15/12/11 00:10, Oleg Oshmyan wrote: > PHP internally already has php_localtime_r and php_gmtime_r in > main/php_reentrancy.h, implemented in main/reentrancy.c, and they are > already used in various places in the code, including the guessing > algorithm that is being removed in PHP 5.4. So at the very least > thread-safety (and in fact portability too) should not become worse than > it is now. Oh, nice. I thought thet would be doing its own argument passing, based on timelib, but turns out they do retrive the value from the system {local,gm}time, even on those without a _r version.