From 71dcf7ebebe068c439bdba8f93c08900294f5853 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 10 Oct 2010 09:56:54 +0000 Subject: [PATCH] Replaced error suppression operator with wfSuppressWarnings()/wfRestoreWarnings() --- includes/GlobalFunctions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4384504cc1..b32780ce79 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2278,7 +2278,8 @@ function wfIncrStats( $key ) { ); } $statline = "stats/{$wgDBname} - 1 1 1 1 1 {$key}\n"; - @socket_sendto( + wfSuppressWarnings(); + socket_sendto( $socket, $statline, strlen( $statline ), @@ -2286,6 +2287,7 @@ function wfIncrStats( $key ) { $wgUDPProfilerHost, $wgUDPProfilerPort ); + wfRestoreWarnings(); } elseif( $wgStatsMethod == 'cache' ) { global $wgMemc; $key = wfMemcKey( 'stats', $key ); -- 2.20.1