Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34686 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89780 invoked by uid 1010); 11 Jan 2008 08:44:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89765 invoked from network); 11 Jan 2008 08:44:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 08:44:48 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:39327] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/52-51656-F7C27874 for ; Fri, 11 Jan 2008 03:44:48 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m0B8ii6K028073; Fri, 11 Jan 2008 09:44:44 +0100 Date: Fri, 11 Jan 2008 09:44:42 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Cristian Rodriguez cc: internals Mailing List In-Reply-To: <7d5a202f0801101602oeb53db9p648173a09169f67b@mail.gmail.com> Message-ID: References: <20080109141541.GA14571@redhat.com> <3B0880D2-C5C4-45C6-ABD4-C6B8316E1498@prohost.org> <200801100511.30704.seanius@debian.org> <7d5a202f0801101602oeb53db9p648173a09169f67b@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database From: derick@php.net (Derick Rethans) On Thu, 10 Jan 2008, Cristian Rodriguez wrote: > 2008/1/10, Pierre : > > > If distros start to use the > > system timezone > > Distros use system timezonedb for %99 of the other components(some of > them far more critical than PHP) , why PHP has to be special ? Because if PHP application developers want to deal with timezones correctly, they need to be able to rely on certain functionality and data availability. PHP can not simply use the default OS system calls as they do not expose enough information, therefore we do have to read the database files directly. At the moment we basically concatenate all the database files and give it an index. Parsing the database files could be optimized more if we have control over this format (which we have at the moment). It is quite possible that in the future we do munge the database much more than just a concattenation of all files to increase performance. regards, Derick