The Zend Fat MM patches have been updated to support setting an environment variable, ZEND_FATMM, to control the size of the pre-allocated memory size. The memory size setting can now also be set to 0 to effectively disable the Fat Memory Manager. I also wanted to be able to control these settings from the Apache configuration directive SetEnv in the env module. This, however, won’t work under PHP in it’s current form as SetEnv doesn’t actually set the system environment variables. To work around this I’ve also created a new directive, SetSysEnv, which enables users to control actual environment variables from within Apache configurations. This is useful for setting things like ZEND_FATMM, as well as the other environment variables in the Zend memory manager. Enjoy and drop me some feedback.