Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56911 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49480 invoked from network); 13 Dec 2011 14:48:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2011 14:48:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:45435] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/90-45592-1B567EE4 for ; Tue, 13 Dec 2011 09:48:18 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id A8FECDE13E; Tue, 13 Dec 2011 14:48:14 +0000 (GMT) Date: Tue, 13 Dec 2011 14:48:14 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Oleg Oshmyan cc: PHP Developers Mailing List In-Reply-To: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> Message-ID: References: <8D58A664-7250-4FEE-9424-2D2DEFC69308@inbox.lv> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Local time zone From: derick@php.net (Derick Rethans) On Mon, 12 Dec 2011, Oleg Oshmyan wrote: > > This might work on some distrbutions, but not nearly on all. And > > definitely not on Windows. On Debian it's not a symlink for example. > > It is still usable as one of the possibilities for the guessing algorithm > to examine. > > Initially I also wanted to say that /usr/share/zoneinfo can be searched > if /etc/localinfo is not a symbolic link, but I have just run a test: We will not be adding code that has to scan the filesystem. > > It's a guess, and that's the problem. Guessing makes up for odd and > > strange bugs if it's not 100% accurate (which it isn't). > > Which is why a pseudo-timezone called System is needed so that guesses do > not have to be made. The extension would then convert /etc/localtime to > its internal time zone description format or just use system-provided > APIs as it used to do before PHP 5.1 if I understand correctly. > > > That's a really bad idea, as we've discussed before on this list. > Perhaps I am a bad searcher; I would appreciate if you pointed me at > some of the past discussion. http://marc.info/?t=119988823700001&r=1&w=2 is what it was I think. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug