tbrehm
2013-02-06 ea7f12b2ce18f43dd23d914338226801f1030ae9
Fixed: FS#2637 - Default php.ini will not be used when set custom php.ini directives
1 files modified
6 ■■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 6 ●●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -834,6 +834,12 @@
                    $master_php_ini_path = $web_config['php_ini_path_cgi'];
                }
            }
            //* Add php.ini to the path in case that the master_php_ini_path is a directory
            if($master_php_ini_path != '' && is_dir($master_php_ini_path) && is_file($master_php_ini_path.'/php.ini')) {
                $master_php_ini_path .= '/php.ini';
            }
            if($master_php_ini_path != '' && substr($master_php_ini_path,-7) == 'php.ini' && is_file($master_php_ini_path)) {
                $php_ini_content .= $app->system->file_get_contents($master_php_ini_path)."\n";
            }