Debian Bug report logs - #532104
libapache2-mod-php5: date_default_timezone_set("America") returns true

version graph

Package: libapache2-mod-php5; Maintainer for libapache2-mod-php5 is (unknown);

Reported by: Alan James <alan@alanjames.org>

Date: Sat, 6 Jun 2009 13:30:01 UTC

Severity: normal

Found in version 5.2.6.dfsg.1-1+lenny3

Done: Sean Dubois <seander13@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#532104; Package libapache2-mod-php5. (Sat, 06 Jun 2009 13:30:04 GMT) (full text, mbox, link).


Acknowledgement sent to Alan James <alan@alanjames.org>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 06 Jun 2009 13:30:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Alan James <alan@alanjames.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libapache2-mod-php5: date_default_timezone_set("America") returns true
Date: Sat, 06 Jun 2009 14:26:31 +0100
Package: libapache2-mod-php5
Version: 5.2.6.dfsg.1-1+lenny3
Severity: important


date_default_timezone_set() should return false if given an invalid time zone, however some invalid 
strings are accepted. 

eg:
var_export(date_default_timezone_set('America')) => true
var_export(date_default_timezone_set('America/Los_Angeles')) => true
var_export(date_default_timezone_set('Europe/')) => true
var_export(date_default_timezone_set('Europe/London')) => true

expected result => false, true, false, true.

After accepting an invalid time zone date functions will return the fatal error "Timezone database is 
corrupt".

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Shell: /bin/sh linked to /bin/bash

Versions of packages libapache2-mod-php5 depends on:
ii  apache2-mpm-pre 2.2.9-10+lenny2          Apache HTTP Server - traditional n
ii  apache2.2-commo 2.2.9-10+lenny2          Apache HTTP Server common files
ii  libbz2-1.0      1.0.5-1                  high-quality block-sorting file co
ii  libc6           2.7-18                   GNU C Library: Shared libraries
ii  libcomerr2      1.41.3-1                 common error description library
ii  libdb4.6        4.6.21-11                Berkeley v4.6 Database Libraries [
ii  libkrb53        1.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii  libmagic1       4.26-1                   File type determination library us
ii  libpcre3        7.6-2.1                  Perl 5 Compatible Regular Expressi
ii  libssl0.9.8     0.9.8g-15+lenny1         SSL shared libraries
ii  libxml2         2.6.32.dfsg-5            GNOME XML library
ii  mime-support    3.44-1                   MIME files 'mime.types' & 'mailcap
ii  php5-common     5.2.6.dfsg.1-1+lenny3    Common files for packages built fr
ii  tzdata          2008h-2                  time zone and daylight-saving time
ii  ucf             3.0016                   Update Configuration File: preserv
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

libapache2-mod-php5 recommends no packages.

Versions of packages libapache2-mod-php5 suggests:
pn  php-pear                      <none>     (no description available)

-- no debconf information




Severity set to `normal' from `important' Request was from Thijs Kinkhorst <thijs@debian.org> to control@bugs.debian.org. (Sat, 06 Jun 2009 14:18:02 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#532104; Package libapache2-mod-php5. (Sat, 25 Aug 2012 13:57:06 GMT) (full text, mbox, link).


Acknowledgement sent to Sean Dubois <seander13@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 25 Aug 2012 13:57:06 GMT) (full text, mbox, link).


Message #12 received at 532104@bugs.debian.org (full text, mbox, reply):

From: Sean Dubois <seander13@gmail.com>
To: 532104@bugs.debian.org
Subject: RE: libapache2-mod-php5: date_default_timezone_set("America") returns true
Date: Sat, 25 Aug 2012 09:54:14 -0400
This is fixed in stable now.

        var_dump(date_default_timezone_set('America'));
        var_dump(date_default_timezone_set('America/Los_Angeles'));
        bool(false) bool(true);

Could someone close this?



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#532104; Package libapache2-mod-php5. (Sat, 25 Aug 2012 15:27:09 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Goirand <zigo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 25 Aug 2012 15:27:09 GMT) (full text, mbox, link).


Message #17 received at 532104@bugs.debian.org (full text, mbox, reply):

From: Thomas Goirand <zigo@debian.org>
To: Sean Dubois <seander13@gmail.com>, 532104@bugs.debian.org
Subject: Re: [php-maint] Bug#532104: libapache2-mod-php5: date_default_timezone_set("America") returns true
Date: Sat, 25 Aug 2012 23:25:26 +0800
On 08/25/2012 09:54 PM, Sean Dubois wrote:
> This is fixed in stable now.
> 
>         var_dump(date_default_timezone_set('America'));
>         var_dump(date_default_timezone_set('America/Los_Angeles'));
>         bool(false) bool(true);
> 
> Could someone close this?

Hi Sean,

Everyone can close bugs. Just send a mail to:
532104-done@bugs.debian.org

By the way, thanks for doing this bug triaging work, this really IS helpful.

Thomas



Reply sent to Sean Dubois <seander13@gmail.com>:
You have taken responsibility. (Sat, 25 Aug 2012 17:21:04 GMT) (full text, mbox, link).


Notification sent to Alan James <alan@alanjames.org>:
Bug acknowledged by developer. (Sat, 25 Aug 2012 17:21:05 GMT) (full text, mbox, link).


Message #22 received at 532104-done@bugs.debian.org (full text, mbox, reply):

From: Sean Dubois <seander13@gmail.com>
To: 532104-done@bugs.debian.org
Subject: Re: Bug#532104: [php-maint] Bug#532104: libapache2-mod-php5: date_default_timezone_set("America") returns true
Date: Sat, 25 Aug 2012 13:16:45 -0400
Just glad I can help :)

Closing this, bug is not reproducible in stable.

On Sat, Aug 25, 2012 at 11:25 AM, Thomas Goirand <zigo@debian.org> wrote:
> On 08/25/2012 09:54 PM, Sean Dubois wrote:
>> This is fixed in stable now.
>>
>>         var_dump(date_default_timezone_set('America'));
>>         var_dump(date_default_timezone_set('America/Los_Angeles'));
>>         bool(false) bool(true);
>>
>> Could someone close this?
>
> Hi Sean,
>
> Everyone can close bugs. Just send a mail to:
> 532104-done@bugs.debian.org
>
> By the way, thanks for doing this bug triaging work, this really IS helpful.
>
> Thomas
>



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 23 Sep 2012 07:25:36 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:44:09 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.