Hello

Attached patch allowes to set environment variables using Apaches
SetEnv or mod_rewrite or PHPs putenv() that can be used in properties files.

I use this to switch the application path between devel, beta, release
depending on the virtual host.

bye,

-christian-



diff -Nurb log4php/helpers/LoggerOptionConverter.php 
log4php.ch/helpers/LoggerOptionConverter.php
--- log4php/helpers/LoggerOptionConverter.php   2007-07-10 14:28:21.000000000 
+0200
+++ log4php.ch/helpers/LoggerOptionConverter.php        2007-07-18 
16:50:20.000000000 +0200
@@ -75,8 +75,8 @@
 
         if (defined($key)) {
             return (string)constant($key);
-        } elseif (isset($_ENV[$key])) {
-            return (string)$_ENV[$key];
+        } elseif (isset($_SERVER[$key])) {
+            return (string)$_SERVER[$key];
         } else {
             return $def;
         }

Reply via email to