ID:               22953
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to