commit | 40d124924ea331c6a57ab1b3f743299a41eb3f0c | [log] [tgz] |
---|---|---|
author | vlakoff <vlakoff@gmail.com> | Tue Aug 06 14:46:00 2013 +0200 |
committer | vlakoff <vlakoff@gmail.com> | Tue Aug 06 14:49:52 2013 +0200 |
tree | f1ca126a98fddf103dec6d544536d6d240d32ffc | |
parent | c941d855dc32ec44107cb863596fa385c7aed015 [diff] [blame] |
Replace php_sapi_name() function with PHP_SAPI constant exact same behavior but faster, shorter
diff --git a/system/core/Input.php b/system/core/Input.php index 6f184a3..1e67ce1 100644 --- a/system/core/Input.php +++ b/system/core/Input.php
@@ -872,7 +872,7 @@ */ public function is_cli_request() { - return (php_sapi_name() === 'cli' OR defined('STDIN')); + return (PHP_SAPI === 'cli' OR defined('STDIN')); } // --------------------------------------------------------------------