ID: 35178 Updated by: [EMAIL PROTECTED] Reported By: chris_petersen at hotmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Windows 2000 PHP Version: Irrelevant New Comment:
This is simply misunderstanding. It's not possible to have different PHPRC environment variables for different virtualhosts. And "SetEnv PHPRC" is NOT the way to set it. That is an Apache environment variable, not the system environment PHP uses. And it's documented properly now -> bogus. Previous Comments: ------------------------------------------------------------------------ [2005-11-09 23:19:57] chris_petersen at hotmail dot com Description: ------------ The bug reports and updated documentation for PHP 5 state that the PHPRC variable should no longer be set by Apache 1.x but as a system environment variable instead. What the documentation fails to describe is how the environment variable is to be configured for each Apache 1.x Virtual Host, each with it's own PHP configuration. It appears to me that this PHPRC issue really is a bug and not a documentation issue. It is unreasonable that multiple hosts should share the same php.ini file. Workarounds are to upgrade Apache 1.x to 2.x (not recommended) or roll back to PHP 4. Reproduce code: --------------- The "SetEnv PHPRC" in a Apache 1.x httpd.conf file will not be read by PHP5. This can easily be proven using phpinfo(). Expected result: ---------------- There must be a documented method of providing a seperate php.ini for each Apache 1.x virtual host. Actual result: -------------- The documentation states that the variable should be set as a system wide environment variable. The documentation fails to state how this should be done when there is more than one virtual host which requires more than one php.ini file. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35178&edit=1