Skip to content

Commit 32f65c2

Browse files
committed
Custom php.ini settings: PHP-FPM might complain about invalid boolean value if you use 0 instead of off, false, or no.
1 parent ba5cfd1 commit 32f65c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,8 @@ private function php_fpm_pool_update ($data,$web_config) {
11081108
case 'off':
11091109
case '1':
11101110
case '0':
1111+
// PHP-FPM might complain about invalid boolean value if you use 0
1112+
$value = 'off';
11111113
case 'true':
11121114
case 'false':
11131115
case 'yes':

0 commit comments

Comments
 (0)