#48882 [Com]: "PHP Startup: Timezone database is corrupt"
| From: | mkliewe at gmx dot de | Date: | Thu, 05 Nov 2009 16:25:06 +0000 |
| Subject: | #48882 [Com]: "PHP Startup: Timezone database is corrupt" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144298@lists.php.net to get a copy of this message | ||
ID: 48882
Comment by: mkliewe at gmx dot de
Reported By: vonpreussen at 2secure dot us
Status: No Feedback
Bug Type: Date/time related
Operating System: centos 5
PHP Version: 5.3.0
New Comment:
I had the same problem. I tried date.timezone and
date_default_timezone_set(), but nothing worked.
The real problem was an extension load problem. after solving this the
error disappeared. Strange behaviour.
Previous Comments:
------------------------------------------------------------------------
[2009-10-05 22:03:54] warwick dot shaw at gmail dot com
To reproduce on "CentOS release 5.3 (Final)"
Any syntax error in the /usr/lib/lib/php.ini causes the above.
In my case
...
date.timezone='America/New_York'
...
extension = "tidy.so"a
Remove the trailing "a" then ok
Other cases that caused same the error
1. an extension doesn't exist
extension = "doesnotexist.so"
2. an extension was installed from a rpm for a previous version.
A command to just validate the php.ini configuration would be handy.
------------------------------------------------------------------------
[2009-08-25 16:21:35] brunofr at ioda dot net
exactly the same error with opensuse package ( build repos server/php
)
under 11.1 version
If export TZ in profile or apache2 startup script
it works.
------------------------------------------------------------------------
[2009-08-06 17:47:57] bug dot dmca at gmail dot com
apache module fixed by adding TZ=GMT in init.d script. Don't know if
there any other way, but at least it's working.
------------------------------------------------------------------------
[2009-08-06 17:05:52] bug dot dmca at gmail dot com
cli fixed after adding TZ=GMT in /etc/profile
apache module still not working.
------------------------------------------------------------------------
[2009-08-06 16:50:46] bug dot odesk at gmail dot com
CentOS 5, php 5.3 cli. tzdata 2009i.
$ php -v
PHP Strict Standards: PHP Startup: It is not safe to rely on the
system's timezone settings. Please use the date.timezone setting, the TZ
environment variable or the date_default_timezone_set() function. In
case you used any of those methods and you are still getting this
warning, you most likely misspelled the timezone identifier. We selected
'America/Chicago' for 'CDT/-5.0/DST' instead in Unknown on line 0
PHP Fatal error: PHP Startup: Timezone database is corrupt - this
should *never* happen! in Unknown on line 0
Segmentation fault
strace log.
http://pastebin.com/f2b4d38c7
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/48882
--
Edit this bug report at http://bugs.php.net/?id=48882&edit=1