Re: date.timezone E_WARNING -- Really necessary? What's the rationale?
| From: | Peter Cowburn | Date: | Mon, 27 May 2013 19:05:02 +0000 |
| Subject: | Re: date.timezone E_WARNING -- Really necessary? What's the rationale? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67564@lists.php.net to get a copy of this message | ||
On 27 May 2013 09:35, Jannik Zschiesche <hello@apfelbox.net> wrote:
> Hello,
>
>
> would it be hard to just show the notice as soon as the user actually uses
> a function regarding to date/time (and not before)?
>
> Currently the message is shown all the time, at the start of the script -
> even if the script is as simple as
>
> <?php
>
> echo 1;
>
>
> Wouldn't it be more useful if the notice only appears, if I actually use a
> date/time-function?
>
You're describing the current behaviour; unless I'm missing something
obvious, the warning is only displayed when you try to do something
date-related. Your example script should not be presenting any warnings,
regardless of the date.timezone INI setting or lack thereof.
>
>
> --
> Cheers
> Jannik
>
>