From 1e1b405b9789b7255d48acfd0abea4e4cf3e4f15 Mon Sep 17 00:00:00 2001 From: Christophe Date: Sun, 26 Jun 2016 06:59:28 +0200 Subject: [PATCH] Add the ability to have an additional php.ini file (#913) When upgrading PHP version, the php.ini file is reset. So, I used PHP_INI_SCAN_DIR $env var to add an additional path to load php config files: /php/conf/. I think this little change can simplify the PHP upgrading process. --- php.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php.json b/php.json index 03501bc6b1..e165877ec7 100644 --- a/php.json +++ b/php.json @@ -28,6 +28,9 @@ "php.exe", "php-cgi.exe" ], + "env_set": { + "PHP_INI_SCAN_DIR": "$dir\\..\\conf" + }, "post_install": " #Copy PHP configuration file to expected location cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"