The Apache env module is extremely useful, but unfortunately in some cases it doesn’t work exactly as you’d expect. With the PHP Apache SAPI, the SetEnv does not actually affect the system environment variables. This means that any calls to the system getenv() call will not fetch the variables set with SetEnv. This can be a problem if you’d like to control Zend memory management environment variables from the Apache configuration files. I’ve created a very simple patch that adds a SetSysEnv that mirrors SetEnv, but actually sets the system environment variables enabling you to control these run-time configuration options. This was initially created so I could control the ZEND_FATMM environment variable.
Download: apache_1.3.37.setsysenv.patch
Leave a reply