#22953 [Opn->Fbk]: putenv doesn't work as documented

From: Date: Mon, 31 Mar 2003 07:16:56 +0000
Subject: #22953 [Opn->Fbk]: putenv doesn't work as documented
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36760@lists.php.net to get a copy of this message
ID: 22953 Updated by: sniper@php.net Reported By: cap at capsi dot com -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: Linux 2.2 PHP Version: 4.3.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-03-29 11:17:58] cap at capsi dot com I've been using putenv with PHP 4.3.1 and Apache 2.0.44, but it does not seem to restore variables correctly. I'm getting +0100 and -0800 entries all across my Apache logs for a static image server, referenced from multiple sites with different putenv("TZ=zone"); initializations. Apparenty putenv does not work for a specific request only, as documented (different problem than closed bug #10970). I also believe putenv affects all threads within a process. This virually makes it impossible to use different timezones for different virtual hosts, without poisoning Apache logs with different timezones in it (which fails for a lot of analyzing software). # ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-gd --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/postgresql --with-zlib-dir=/usr/lib ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22953&edit=1

« previous php.bugs (#36760) next »