From 93202880e160ce1168f552b385d59493bf0df3a5 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 30 Dec 2005 08:52:45 +0000 Subject: [PATCH] arrrggh suppressed fatal --- includes/Setup.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Setup.php b/includes/Setup.php index 896ef07c69..1fdc3f82ad 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -88,8 +88,9 @@ wfProfileIn( $fname.'-misc1' ); $wgIP = false; # Load on demand $wgRequest = new WebRequest(); -$wguname = @posix_uname(); - +if ( function_exists( 'posix_uname' ) ) { + $wguname = posix_uname(); +} # Useful debug output if ( $wgCommandLineMode ) { # wfDebug( '"' . implode( '" "', $argv ) . '"' ); -- 2.20.1