Re: Fix for php4 bug #30096
| From: | Antony Dovgal | Date: | Mon, 15 Nov 2004 15:43:49 +0000 |
| Subject: | Re: Fix for php4 bug #30096 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13865@lists.php.net to get a copy of this message | ||
On Mon, 15 Nov 2004 16:04:46 +0100
Vladimir Zidar <vladimir@mindnever.org> wrote:
> If anybody cares,
>
> gmmktime returning completly bogus results. It can be easly checked
> out by manually setting TZ shell variable.
>
> Lets try it like this:
>
> TZ=GMT+1 php -r "echo gmmktime();"
>
> gives 1100292805
>
> TZ=GMT+2 php -r "echo gmmktime();"
>
> gives 1100289207
>
> TZ=GMT+3 php -r "echo gmmktime();"
>
> gives 1100285610
>
> But it should return always the same time (ok, few seconds here and
> there, needed to type each command..) no matter which timezone is set.
>
I wonder why it wasn't noticed before, cause CVS says it was introduced ages ago:
http://cvs.php.net/co.php/php-src/ext/standard/datetime.c?r=1.8
http://cvs.php.net/diff.php/php-src/ext/standard/datetime.c?r1=1.7&r2=1.8&ty=u
--
Wbr,
Antony Dovgal aka tony2001
tony2001@phpclub.net || antony@dovgal.com