On Tue, May 28, 2013 at 12:57 AM, Daniel Lowrey <rdlow...@gmail.com> wrote:
>
> My problem with the current behavior is that it essentially *forces*
> the use of an .ini file by triggering an error if no default is
> assigned.

No it does not. You can use:

- php -d ...
- date_default_timezone_set

> Now, as far as I can tell the only argument put forward to justify
> triggering the error is (summarized): many people are too stupid to
> set a timezone and don't understand why the results of their date()
> calls are different from their own timezone. This results in many
> erroneous bug reports.

It is not one of the arguments. The arguments are bad TZ, invalid TZ
or inconsistent in system's TZ, which causes hard to catch bugs (and
not possible to fix), non portable code (if you rely on a bad TZ), to
name only a few.

And I stop here for this discussion, I do not see any new arguments on
both sides and a default TZ will very unlikely happen. Packagers could
deal with that easily and application developers as well.

Cheers,
--
Pierre

@pierrejoye |  http://www.libgd.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to