ID: 48882 Comment by: warwick dot shaw at gmail dot com 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:
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. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2009-07-18 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ 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