Fix exit code on bootsrap errors in CLI mode (#1489044)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Fix exit code on bootsrap errors in CLI mode (#1489044) |
| | | - Fix error handling in CLI mode, use STDERR and non-empty exit code (#1489043) |
| | | - Fix error when using check_referer=true |
| | | - Fix incorrect handling of some specific links (#1489060) |
| | |
| | | |
| | | foreach ($config as $optname => $optval) { |
| | | if ($optval != ini_get($optname) && @ini_set($optname, $optval) === false) { |
| | | die("ERROR: Wrong '$optname' option value and it wasn't possible to set it to required value ($optval).\n" |
| | | ."Check your PHP configuration (including php_admin_flag)."); |
| | | $error = "ERROR: Wrong '$optname' option value and it wasn't possible to set it to required value ($optval).\n" |
| | | . "Check your PHP configuration (including php_admin_flag)."; |
| | | if (defined('STDERR')) fwrite(STDERR, $error); else echo $error; |
| | | exit(1); |
| | | } |
| | | } |
| | | |