php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22953 putenv doesn't work as documented
Submitted: 2003-03-29 11:17 UTC Modified: 2003-04-06 07:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: cap at capsi dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.1 OS: Linux 2.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-03-29 11:17 UTC] 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  
  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-06 07:00 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC