Skip to content

Commit 0f603d7

Browse files
committed
- Fixed bug for custom php.ini settings for PHP-FPM where "1" and "on" were interpreted as "off".
1 parent d4487ba commit 0f603d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,12 +2048,12 @@ private function php_fpm_pool_update ($data,$web_config,$pool_dir,$pool_name,$so
20482048
$value = escapeshellcmd(trim($value));
20492049
$key = escapeshellcmd(trim($key));
20502050
switch (strtolower($value)) {
2051-
case 'on':
2052-
case 'off':
2053-
case '1':
20542051
case '0':
20552052
// PHP-FPM might complain about invalid boolean value if you use 0
20562053
$value = 'off';
2054+
case '1':
2055+
case 'on':
2056+
case 'off':
20572057
case 'true':
20582058
case 'false':
20592059
case 'yes':

server/plugins-available/nginx_plugin.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,12 +1662,12 @@ private function php_fpm_pool_update ($data,$web_config,$pool_dir,$pool_name,$so
16621662
$value = escapeshellcmd(trim($value));
16631663
$key = escapeshellcmd(trim($key));
16641664
switch (strtolower($value)) {
1665-
case 'on':
1666-
case 'off':
1667-
case '1':
16681665
case '0':
16691666
// PHP-FPM might complain about invalid boolean value if you use 0
16701667
$value = 'off';
1668+
case '1':
1669+
case 'on':
1670+
case 'off':
16711671
case 'true':
16721672
case 'false':
16731673
case 'yes':

0 commit comments

Comments
 (0)