From: thomas at ecommerce dot com
Operating system: SuSE Linux
PHP version: 5CVS-2005-09-02 (snap)
PHP Bug Type: SPL related
Bug description: TimzeZones Problem
Description:
------------
PHP 5.1 don't know some timezones that was avaible in PHP 5.0. At first,
the setted TZ come from a SPL function ( date() ) and afterwards saying it
doesn't know it.
Ans why will this code bellow set 'UTC' in the ENV var instead of the
before setted CEST?
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
echo getenv('TZ') . "\n";
echo date('T') . "\n";
putenv('TZ=' . date('T'));
echo getenv('TZ') . "\n";
echo date('T') . "\n";
Expected result:
----------------
CEST
CEST
UTC
Actual result:
--------------
CEST
CEST
Notice: date(): Timezone setting (date.timezone) or TZ environment
variable contains an unknown timezone. in /home/Thomas/test.php on line 9
UTC
--
Edit bug report at http://bugs.php.net/?id=34347&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34347&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34347&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34347&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34347&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34347&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34347&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34347&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34347&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34347&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34347&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34347&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34347&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34347&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34347&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34347&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34347&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34347&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34347&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34347&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34347&r=mysqlcfg