[php-maint] Bug#673763: Upgrade to php 5.4 broke system-fallback for date_default_timezone_get()
Andreas Pakulat
apaku at gmx.de
Mon May 21 09:32:39 UTC 2012
Package: php5
Version: 5.4.3-4
Severity: important
Hi,
apparently upstream changed the logics of the
date_default_timezone_get() function in a way such that the
use_embedded_timezonedb_fixes.patch is not having any effect anymore.
At least here with:
cat /etc/timezone
Europe/Berlin
this php script:
<?php
echo date_default_timezone_get();
?>
produces this output:
PHP Warning: date_default_timezone_get(): It is not safe to rely on the
system's timezone settings. You are *required* to use the date.timezone
setting 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 the timezone
'UTC' for now, but please set date.timezone to select your timezone. in
/tmp/tzinfo.php on line 3
UTC
While php 5.3 correctly produced Europe/Berlin without any warnings.
Andreas
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5 depends on:
ii libapache2-mod-php5 5.4.3-4
ii php5-common 5.4.3-4
php5 recommends no packages.
php5 suggests no packages.
-- no debconf information
More information about the pkg-php-maint
mailing list