From: cap at capsi dot com
Operating system: Linux 2.2
PHP version: 4.3.1
PHP Bug Type: Apache2 related
Bug description: putenv doesn't work as documented
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 bug report at http://bugs.php.net/?id=22953&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22953&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22953&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22953&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22953&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22953&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22953&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22953&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22953&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22953&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22953&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22953&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22953&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22953&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22953&r=gnused