summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Common.php2
-rw-r--r--system/core/Input.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index b9e318394..28c60832c 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -538,7 +538,7 @@ if ( ! function_exists('set_status_header'))
$server_protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : FALSE;
- if (strpos(php_sapi_name(), 'cgi') === 0)
+ if (strpos(PHP_SAPI, 'cgi') === 0)
{
header('Status: '.$code.' '.$text, TRUE);
}
diff --git a/system/core/Input.php b/system/core/Input.php
index 6f184a3ca..1e67ce183 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -872,7 +872,7 @@ class CI_Input {
*/
public function is_cli_request()
{
- return (php_sapi_name() === 'cli' OR defined('STDIN'));
+ return (PHP_SAPI === 'cli' OR defined('STDIN'));
}
// --------------------------------------------------------------------