Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-03-27 Thread sean finney
hi, On Thursday 27 March 2008 10:26:57 pm Richard Lynch wrote: > Just recently, somebody wondered why PHP had the CORRECT time when > their web-server didn't... and vice versa. see for example: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471104 if there were an *option* for php to

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-03-27 Thread Cristian Rodriguez
>2008/3/27, Richard Lynch <[EMAIL PROTECTED]>: > As I understand the situation, if you can get ALL the sysadmins of the > world to update their [bleep] timezonedb frequently, PHP can drop the > internal timezonedb. OS vendors release timezone updates frecuently, there is no need for such bundl

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-03-27 Thread Richard Lynch
On Thu, March 20, 2008 12:40 pm, sean finney wrote: > sorry for digging up this dead horse... > > On Thursday 10 January 2008 01:05:35 pm Joe Orton wrote: >> On Wed, Jan 09, 2008 at 09:03:02PM +0100, Derick Rethans wrote: >> > On Wed, 9 Jan 2008, Joe Orton wrote: >> > > It's a bit of a maintenance

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-03-20 Thread sean finney
hi everyone, sorry for digging up this dead horse... On Thursday 10 January 2008 01:05:35 pm Joe Orton wrote: > On Wed, Jan 09, 2008 at 09:03:02PM +0100, Derick Rethans wrote: > > On Wed, 9 Jan 2008, Joe Orton wrote: > > > It's a bit of a maintenance headache for distributions when > > > packages

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-11 Thread Joe Orton
On Fri, Jan 11, 2008 at 09:59:46AM +0100, Derick Rethans wrote: > On Thu, 10 Jan 2008, Joe Orton wrote: > > On Wed, Jan 09, 2008 at 09:03:02PM +0100, Derick Rethans wrote: > > > It's not used (anymore). However, there is a PHP function > > > timezone_identifiers_list that uses the index informatio

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-11 Thread Derick Rethans
On Thu, 10 Jan 2008, Joe Orton wrote: > On Wed, Jan 09, 2008 at 09:03:02PM +0100, Derick Rethans wrote: > > On Wed, 9 Jan 2008, Joe Orton wrote: > > > > > It's a bit of a maintenance headache for distributions when > > > packages include their own copy of the timezone database, since this > > >

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-11 Thread Derick Rethans
On Thu, 10 Jan 2008, Cristian Rodriguez wrote: > 2008/1/10, Pierre <[EMAIL PROTECTED]>: > > > 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

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-11 Thread Peter Brodersen
Hi, On Thu, 10 Jan 2008 21:02:17 -0300, in php.internals [EMAIL PROTECTED] ("Cristian Rodriguez") wrote: >> 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 ? Beca

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Cristian Rodriguez
2008/1/10, Rasmus Lerdorf <[EMAIL PROTECTED]>: > Making this an option for the distros is something we pretty much have > to do. Yes, or otherwise distros will simple implement their own options. ;-) > And yes, I know it makes life harder for people writing portable > apps, but that's just the w

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Cristian Rodriguez
2008/1/10, Pierre <[EMAIL PROTECTED]>: > Besides the issues listed by Derick, there is two problems with these > choices (distro making design changes to upstream software). > Please don't add the timezone to the list > of troubles. The vast mayority of PHP users obtain it via their OS vendor, is

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread sean finney
hey pierre, (removed some folks from the cc) On Thursday 10 January 2008 11:22:52 am Pierre wrote: > Besides the issues listed by Derick, there is two problems with these > choices (distro making design changes to upstream software). First it that's sort of the point of open-source software, tho

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread sean finney
hi derick, On Thursday 10 January 2008 09:50:14 am Derick Rethans wrote: > > Personally I think this patch would be great, and I will recommend it to > > the other debian php maintainers for review. > > Let me just remind you: > This patch BREAKS functionality. which of course should be avoided i

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Rasmus Lerdorf
Lukas Kahwe Smith wrote: On Jan 10, 2008, at 1:05 PM, Joe Orton wrote: I'm not sure I find the logic of the "but the system-provided data will become stale" arguments convincing; systems which are left unmaintained by the administrators will have old versions of software on; that's a given. I

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Lukas Kahwe Smith
On Jan 10, 2008, at 1:05 PM, Joe Orton wrote: I'm not sure I find the logic of the "but the system-provided data will become stale" arguments convincing; systems which are left unmaintained by the administrators will have old versions of software on; that's a given. I can't see why adding

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Joe Orton
Thanks for all the feedback. On Wed, Jan 09, 2008 at 09:03:02PM +0100, Derick Rethans wrote: > On Wed, 9 Jan 2008, Joe Orton wrote: > > > It's a bit of a maintenance headache for distributions when > > packages include their own copy of the timezone database, since this > > needs to be updated

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Pierre
Hi Sean, On Jan 10, 2008 5:10 AM, sean finney <[EMAIL PROTECTED]> wrote: > Hi Ilia, Joe, > > On Wednesday 09 January 2008 08:50:59 pm Ilia Alshanetsky wrote: > > The reason we do not use the system database is because it is > > inconsistent and likely is updated less frequently then the one > > in

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Derick Rethans
On Thu, 10 Jan 2008, sean finney wrote: > On Wednesday 09 January 2008 08:50:59 pm Ilia Alshanetsky wrote: > > The reason we do not use the system database is because it is > > inconsistent and likely is updated less frequently then the one > > included with PHP. > > Personally I think this patch

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-10 Thread Derick Rethans
On Wed, 9 Jan 2008, Larry Garfield wrote: > > On Wed, 9 Jan 2008 17:14:29 -0300, "Cristian Rodriguez" <[EMAIL PROTECTED]> > wrote: > > 2008/1/9, Derick Rethans <[EMAIL PROTECTED]>: > > > >> Why do you need this? > > > > It is simple, even releasing an update for a particular extension, > > tri

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread sean finney
Hi Ilia, Joe, On Wednesday 09 January 2008 08:50:59 pm Ilia Alshanetsky wrote: > The reason we do not use the system database is because it is > inconsistent and likely is updated less frequently then the one > included with PHP. > > -1. Personally I think this patch would be great, and I will re

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Larry Garfield
On Wed, 9 Jan 2008 17:14:29 -0300, "Cristian Rodriguez" <[EMAIL PROTECTED]> wrote: > 2008/1/9, Derick Rethans <[EMAIL PROTECTED]>: > >> Why do you need this? > > It is simple, even releasing an update for a particular extension, > trigger the whole manteniance and QA in distributions, and it >

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Cristian Rodriguez
2008/1/9, Derick Rethans <[EMAIL PROTECTED]>: > Why do you need this? It is simple, even releasing an update for a particular extension, trigger the whole manteniance and QA in distributions, and it unneccesary work , when the system tz is used you have QA and mantain just one component, the "tim

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Derick Rethans
On Wed, 9 Jan 2008, Cristian Rodriguez wrote: > 2008/1/9, Ilia Alshanetsky <[EMAIL PROTECTED]>: > > The reason we do not use the system database is because it is > > inconsistent and likely is updated less frequently then the one > > included with PHP. > > please consider this patch as an alterna

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Derick Rethans
On Wed, 9 Jan 2008, Joe Orton wrote: > It's a bit of a maintenance headache for distributions when > packages include their own copy of the timezone database, since this > needs to be updated frequently. There is a PECL extension to provide those updates: http://pecl.php.net/package/timezonedb

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Cristian Rodriguez
2008/1/9, Ilia Alshanetsky <[EMAIL PROTECTED]>: > The reason we do not use the system database is because it is > inconsistent and likely is updated less frequently then the one > included with PHP. please consider this patch as an alternative for us !! in anycase, you will probably find this pat

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Ilia Alshanetsky
The reason we do not use the system database is because it is inconsistent and likely is updated less frequently then the one included with PHP. -1. On 9-Jan-08, at 9:15 AM, Joe Orton wrote: Hi folks. It's a bit of a maintenance headache for distributions when packages include their own

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Brian Moon
2008/1/9, Joe Orton <[EMAIL PROTECTED]>: Hi folks. It's a bit of a maintenance headache for distributions when packages include their own copy of the timezone database, since this needs to be updated frequently. It is also a bit of a headache when a server does not have a complete timezone da

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Cristian Rodriguez
2008/1/9, Joe Orton <[EMAIL PROTECTED]>: > Hi folks. It's a bit of a maintenance headache for distributions when > packages include their own copy of the timezone database, since this > needs to be updated frequently. > +1000 :-D -- http://www.kissofjudas.net/ -- PHP Internals - PHP Runtime

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Nuno Lopes
Definitely a great idea, since most linux distributions already bundle this information and update it frequently. BTW, your implementation seems to require some security checks for timezone names like "../../../etc/passwd". Nuno - Original Message - From: "Joe Orton" <[EMAIL PROTECTE