ID:               34385
 User updated by:  david at tulloh dot id dot au
 Reported By:      david at tulloh dot id dot au
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.1.0RC1
 Assigned To:      derick
 New Comment:

It seemed a bit odd to me that a function, used properly would throw an
error.

As for fixing the setting, you may have noticed that the reproduce code
included the -n flag, the setting is correctly set in my php.ini. 
However the setting is 'incorrect' in the default setup; it's also not
documented in the supplied -recomended or -dist files.


Previous Comments:
------------------------------------------------------------------------

[2005-09-06 09:56:11] [EMAIL PROTECTED]

Where does it say phpinfo() can't throw errors? Nowhere, fix your
setttings.


------------------------------------------------------------------------

[2005-09-06 08:06:28] [EMAIL PROTECTED]

Assigning to me, but not sure if we're going to change that. In your
case it is actually good that it did this, as it shows that it
incorrectly guessed "America/New_York", which uses the same
abbreviation (EST) as Eastern Australia. So fix your setting :)

------------------------------------------------------------------------

[2005-09-06 05:41:35] david at tulloh dot id dot au

Description:
------------
phpinfo throws a E_STRICT error.  This is caused by PHP  guessing at
the timezone.  I'm not sure that the error message belongs in the
middle of the phpinfo output.

Reproduce code:
---------------
php -a -n

<?php
error_reporting(E_STRICT);
phpinfo(INFO_MODULES);
?>

Expected result:
----------------
phpinfo() should not throw errors, E_STRICT included.

Actual result:
--------------
(CLI output, similar results through apache module)
...

date

date/time support => enabled

Strict Standards: phpinfo() [/phpmanual/function.phpinfo.html]: It is
not safe to rely on the systems timezone settings, please use the
date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. We use 'America/New_York' for
'EST' instead. in /home/lod/Downloads/php-5.1.0RC1/- on line 2
Default timezone => America/New_York

...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34385&edit=1

Reply via email to