#37720 [Opn->Fbk]: merge_php_config scrambles values when using DirectoryMatch / VirtualHost

From: Date: Tue, 06 Jun 2006 22:16:02 +0000
Subject: #37720 [Opn->Fbk]: merge_php_config scrambles values when using DirectoryMatch / VirtualHost
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98109@lists.php.net to get a copy of this message
ID: 37720 Updated by: tony2001@php.net Reported By: pumuckel at metropolis dot de -Status: Open +Status: Feedback -Bug Type: *Configuration Issues +Bug Type: Apache related Operating System: Linux PHP Version: 5.1.4 New Comment: >I can provide a testcase configuration on request. Please upload it somewhere and put the link here. >Configuration is mixed occasionally. It'd be good to have a couple of examples. Previous Comments: ------------------------------------------------------------------------ [2006-06-06 22:05:30] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37720&edit=1

« previous php.bugs (#98109) next »