Date: 12/18/00
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #6842 Updated: Apache 1.3.12 with PHP 4.0.2 cannot handle more than 127 name based vhosts."
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #5108 Updated: Cannot install with fdftk support"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6972
Updated by: sniper
Reported By: jdm <email protected>
Status: Open
Old-Bug Type: Unknown/Other Function
Bug Type: Date/time related
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-10-02 02:14:58] jdm <email protected>
Script to produce the problem:
<?
$TZ=":America/New_York";
$oldTZ = getenv("TZ");
putenv("TZ=$TZ");
$y = date("Z");
$x = date("Z");
echo "A: TZ= $TZ: GMTOFFSET = $y <BR>";
echo "B: TZ= $TZ: GMTOFFSET = $x <BR>";
putenv("TZ=$oldTZ");
$oldTZ = getenv("TZ");
putenv("TZ=$TZ");
$y = date("Z");
$x = date("Z");
echo "A: TZ= $TZ: GMTOFFSET = $y <BR>";
echo "B: TZ= $TZ: GMTOFFSET = $x <BR>";
putenv("TZ=$oldTZ");
?>
If you swap the lines (at the top of the script):
$oldTZ = getenv("TZ");
putenv("TZ=$TZ");
to:
putenv("TZ=$TZ");
$oldTZ = getenv("TZ");
the script works fine.
My installation is RH6.2/apache 1.3.12/php4.0.2/mysql 3.22.23. I also have a
database logging and replication layer as a module in php, but I had someone
on the PHP GENERAL mailing list verify the bug on their setup. This appears
to be a glitch in environment memory handling, but I can't be sure.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6972
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #6842 Updated: Apache 1.3.12 with PHP 4.0.2 cannot handle more than 127 name based vhosts."
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #5108 Updated: Cannot install with fdftk support"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

