diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-19 11:06:41 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-19 11:06:41 +0400 |
commit | 39f12998a7f22682c9adb493f0335e1590f412fa (patch) | |
tree | 9c48370dfb49461d7677c7ab6d9e67de785d6537 /core/SettingsServer.php | |
parent | 221a9e99bb3814bc9df340a392f43c70367ae157 (diff) |
Moving isPhpCli to Common
Diffstat (limited to 'core/SettingsServer.php')
-rw-r--r-- | core/SettingsServer.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/SettingsServer.php b/core/SettingsServer.php index 58208714b8..8f0f9d80bd 100644 --- a/core/SettingsServer.php +++ b/core/SettingsServer.php @@ -30,19 +30,6 @@ class SettingsServer } /** - * Returns true if PHP was invoked from command-line interface (shell) - * - * @since added in 0.4.4 - * @return bool true if PHP invoked as a CGI or from CLI - */ - public static function isPhpCliMode() - { - $remoteAddr = @$_SERVER['REMOTE_ADDR']; - return PHP_SAPI == 'cli' || - (!strncmp(PHP_SAPI, 'cgi', 3) && empty($remoteAddr)); - } - - /** * Returns true if running on Microsoft IIS 7 (or above) * * @return bool |