Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53433 invoked by uid 1010); 9 Oct 2005 14:26:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53418 invoked from network); 9 Oct 2005 14:26:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2005 14:26:56 -0000 X-Host-Fingerprint: 212.55.154.22 relay2.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.22:33713] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 65/53-54476-DA829434 for ; Sun, 09 Oct 2005 10:26:53 -0400 Received: (qmail 17437 invoked from network); 9 Oct 2005 14:26:45 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.154) by relay2 with SMTP; 9 Oct 2005 14:26:45 -0000 Received: (qmail 20822 invoked from network); 9 Oct 2005 14:26:45 -0000 X-AntiVirus: PTMail-AV 0.3.87 X-Virus-Status: Clean (0.16219 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.186.109]) (envelope-sender ) by mta4 (qmail-ldap-1.03) with SMTP for ; 9 Oct 2005 14:26:45 -0000 Message-ID: <001301c5ccdd$77f6d130$0100a8c0@pc07653> To: "Stanislav Malyshev" , "PHP Development" References: Date: Sun, 9 Oct 2005 15:26:41 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Re: [PHP-DEV] date() status From: nlopess@php.net ("Nuno Lopes") > I'm not sure if all the patches are commited as for now, but it still > doesn't work for me. First, IDT setting still returns unknown timezone, > second, now PHP crashes in: > > 0x08095bcd in timelib_tzinfo_dtor (tz=0x0) at > php5/ext/date/lib/timelib.c:107 > 107 TIMELIB_TIME_FREE(tz->name); > (gdb) bt > #0 0x08095bcd in timelib_tzinfo_dtor (tz=0x0) at > php5/ext/date/lib/timelib.c:107 > #1 0x08076f31 in _php_date_tzinfo_dtor (tzinfo=0xa3252a0) at > php5/ext/date/php_date.c > > if I set 'IDT' timezone. Same if I set 'IST' timezone. This patch should fix the segfault: http://mega.ist.utl.pt/~ncpl/php_date_segf.txt The problem of not recognising your timezones is because currently the code isn't doing any guessing magic (aka guess full name from abbr) when the TZ environment var is set. Perhaps a timelib_timezone_id_from_abbr() call could be added in the 'if (env && *env)' section. Nuno