Skip to content

Commit

Permalink
Replacing gethostname() with php_uname('n') to avoid 5.3.0 dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Chernyshev committed Jul 23, 2011
1 parent 44f5d5f commit ce76670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion global.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getShowSlowBase() {
}
else
{
$host = gethostname();
$host = php_uname('n');
// if not running from command line, send warning to the log file
if (php_sapi_name() !== 'cli') {
error_log("[ShowSlow config] Warning: Can't determine site's host name, using $host");
Expand Down

0 comments on commit ce76670

Please # to comment.