arrrggh suppressed fatal
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 30 Dec 2005 08:52:45 +0000 (08:52 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 30 Dec 2005 08:52:45 +0000 (08:52 +0000)
includes/Setup.php

index 896ef07..1fdc3f8 100644 (file)
@@ -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 ) . '"' );