diff --git a/src/Console/ShellDispatcher.php b/src/Console/ShellDispatcher.php index 75c283fe787..6b568527a84 100644 --- a/src/Console/ShellDispatcher.php +++ b/src/Console/ShellDispatcher.php @@ -142,9 +142,9 @@ protected function _initEnvironment() } if (function_exists('ini_set')) { - ini_set('html_errors', false); - ini_set('implicit_flush', true); - ini_set('max_execution_time', 0); + ini_set('html_errors', '0'); + ini_set('implicit_flush', '1'); + ini_set('max_execution_time', '0'); } $this->shiftArgs(); diff --git a/src/Core/Configure.php b/src/Core/Configure.php index 5b48918cb3f..6a424104dc7 100644 --- a/src/Core/Configure.php +++ b/src/Core/Configure.php @@ -96,7 +96,7 @@ public static function write($config, $value = null) static::$_hasIniSet = function_exists('ini_set'); } if (static::$_hasIniSet) { - ini_set('display_errors', $config['debug'] ? 1 : 0); + ini_set('display_errors', $config['debug'] ? '1' : '0'); } } diff --git a/tests/TestCase/Network/Session/DatabaseSessionTest.php b/tests/TestCase/Network/Session/DatabaseSessionTest.php index 3b15baa8a37..47eefe24b84 100644 --- a/tests/TestCase/Network/Session/DatabaseSessionTest.php +++ b/tests/TestCase/Network/Session/DatabaseSessionTest.php @@ -154,7 +154,7 @@ public function testGc() { TableRegistry::clear(); - ini_set('session.gc_maxlifetime', 0); + ini_set('session.gc_maxlifetime', '0'); $storage = new DatabaseSession(); $storage->write('foo', 'Some value');