diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-01 08:43:07 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-01 08:43:07 +0400 |
commit | f7f5296b19316427c34551138b98b639e505546e (patch) | |
tree | 2ddc15d784abcd4c6934cf74aaf6082d84de66f9 /core/ProxyHttp.php | |
parent | a4710cbb1718d010f52f8386de42cd3023269805 (diff) |
Refs #5060 Remove use of substr_compare as it's buggy in 5.5.11 with negative offset
Diffstat (limited to 'core/ProxyHttp.php')
-rw-r--r-- | core/ProxyHttp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ProxyHttp.php b/core/ProxyHttp.php index 7115f5917f..7ebb7c7088 100644 --- a/core/ProxyHttp.php +++ b/core/ProxyHttp.php @@ -221,7 +221,7 @@ class ProxyHttp */ protected static function setHttpStatus($status) { - if (substr_compare(PHP_SAPI, '-fcgi', -5)) { + if (strpos(PHP_SAPI, '-fcgi') !== false) { @header($_SERVER['SERVER_PROTOCOL'] . ' ' . $status); } else { // FastCGI |