PHP :: Bug #37720 :: merge_php_config scrambles values when using DirectoryMatch
| Bug #37720 | merge_php_config scrambles values when using DirectoryMatch / VirtualHost | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-06-06 22:05 UTC | Modified: | 2006-06-09 15:16 UTC | ||
| From: | pumuckel at metropolis dot de | Assigned: | |||
| Status: | Closed | Package: | Apache2 related | ||
| PHP Version: | 5.1.4 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2006-06-06 22:05 UTC] pumuckel at metropolis dot de
Description: ------------ When using DirectoryMatch in httpd.conf / .htaccess and virtualHost entries, then php_values inside those directives get scrambled. The reason seems likely to be that in merge_php_config the new_conf parameter gets modified even this is strictly forbidden by apache2 api! Solution: Make a copy of new_conf (with proper hash initialization) and return a pointer to the new copy. Reproduce code: --------------- I can provide a testcase configuration on request. Expected result: ---------------- The configuration parameters should be as configured. Actual result: -------------- Configuration is mixed occasionally.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-06-06 22:16 UTC] tony2001@php.net
[2006-06-07 11:16 UTC] pumuckel at metropolis dot de
[2006-06-09 15:16 UTC] mike@php.net