Skip to content

Commit 09a18a7

Browse files
author
Michael Hoffmann
committed
Fix ini_set calls to use strings as second parameter
1 parent 1ec80bd commit 09a18a7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Console/ShellDispatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ protected function _initEnvironment()
142142
}
143143

144144
if (function_exists('ini_set')) {
145-
ini_set('html_errors', false);
146-
ini_set('implicit_flush', true);
147-
ini_set('max_execution_time', 0);
145+
ini_set('html_errors', '0');
146+
ini_set('implicit_flush', '1');
147+
ini_set('max_execution_time', '0');
148148
}
149149

150150
$this->shiftArgs();

src/Core/Configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static function write($config, $value = null)
9696
static::$_hasIniSet = function_exists('ini_set');
9797
}
9898
if (static::$_hasIniSet) {
99-
ini_set('display_errors', $config['debug'] ? 1 : 0);
99+
ini_set('display_errors', $config['debug'] ? '1' : '0');
100100
}
101101
}
102102

tests/TestCase/Network/Session/DatabaseSessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testGc()
154154
{
155155
TableRegistry::clear();
156156

157-
ini_set('session.gc_maxlifetime', 0);
157+
ini_set('session.gc_maxlifetime', '0');
158158
$storage = new DatabaseSession();
159159
$storage->write('foo', 'Some value');
160160

0 commit comments

Comments
 (0)