Skip to content

Commit 96ef820

Browse files
committed
PHP >= 5.2.4 supports stderr for reporting the error to stderr instead of stdout. This patch allows to set it as a new setting in settings.yml
1 parent 2987dcd commit 96ef820

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/config/sfApplicationConfiguration.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ public function initConfiguration()
143143
}
144144

145145
// error settings
146-
ini_set('display_errors', $this->isDebug() ? 'on' : 'off');
146+
// PHP >= 5.2.4 supports stdout/stderr instead of bool here: https://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
147+
ini_set('display_errors', $this->isDebug() ? sfConfig::get('sf_display_errors', 'stdout') : '');
147148
error_reporting(sfConfig::get('sf_error_reporting'));
148149

149150
// initialize plugin configuration objects

0 commit comments

Comments
 (0)