|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-31 01:16 UTC] sniper@php.net
[2003-04-06 07:00 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 10 08:00:02 2025 UTC |
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