Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions administrator/components/com_admin/Model/SysinfoModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ public function &getInfo()
'dbversion' => $db->getVersion(),
'dbcollation' => $db->getCollation(),
'dbconnectioncollation' => $db->getConnectionCollation(),
'phpversion' => phpversion(),
'phpversion' => PHP_VERSION,
'server' => $_SERVER['SERVER_SOFTWARE'] ?? getenv('SERVER_SOFTWARE'),
'sapi_name' => php_sapi_name(),
'sapi_name' => PHP_SAPI,
'version' => (new Version)->getLongVersion(),
'useragent' => $_SERVER['HTTP_USER_AGENT'] ?? '',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function getStats(&$params)
$rows[$i] = new \stdClass;
$rows[$i]->title = Text::_('MOD_STATS_PHP');
$rows[$i]->icon = 'cogs';
$rows[$i]->data = phpversion();
$rows[$i]->data = PHP_VERSION;
$i++;

$rows[$i] = new \stdClass;
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Application/WebApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ protected function loadSystemUris($requestUri = null)
$uri = Uri::getInstance($this->get('uri.request'));

// If we are working from a CGI SAPI with the 'cgi.fix_pathinfo' directive disabled we use PHP_SELF.
if (strpos(php_sapi_name(), 'cgi') !== false && !ini_get('cgi.fix_pathinfo') && !empty($_SERVER['REQUEST_URI']))
if (strpos(PHP_SAPI, 'cgi') !== false && !ini_get('cgi.fix_pathinfo') && !empty($_SERVER['REQUEST_URI']))
{
// We aren't expecting PATH_INFO within PHP_SELF so this should work.
$path = dirname($_SERVER['PHP_SELF']);
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Cache/Storage/ApcuStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static function isSupported()
$supported = extension_loaded('apcu') && ini_get('apc.enabled');

// If on the CLI interface, the `apc.enable_cli` option must also be enabled
if ($supported && php_sapi_name() === 'cli')
if ($supported && PHP_SAPI === 'cli')
{
$supported = ini_get('apc.enable_cli');
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Uri/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static function base($pathonly = false)
{
static::$base['prefix'] = $uri->toString(array('scheme', 'host', 'port'));

if (strpos(php_sapi_name(), 'cgi') !== false && !ini_get('cgi.fix_pathinfo') && !empty($_SERVER['REQUEST_URI']))
if (strpos(PHP_SAPI, 'cgi') !== false && !ini_get('cgi.fix_pathinfo') && !empty($_SERVER['REQUEST_URI']))
{
// PHP-CGI on Apache with "cgi.fix_pathinfo = 0"

Expand Down
2 changes: 1 addition & 1 deletion modules/mod_stats/Helper/StatsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function &getList(&$params)

$rows[$i] = new \stdClass;
$rows[$i]->title = Text::_('MOD_STATS_PHP');
$rows[$i]->data = phpversion();
$rows[$i]->data = PHP_VERSION;
$i++;

$rows[$i] = new \stdClass;
Expand Down