Fix for r97328: use SOL_SOCKET instead of SOL_UDP; fixes E_WARNING
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 20 Sep 2011 13:57:56 +0000 (13:57 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 20 Sep 2011 13:57:56 +0000 (13:57 +0000)
includes/GlobalFunctions.php

index bdf0840..cbe28c2 100644 (file)
@@ -869,7 +869,7 @@ function wfErrorLog( $text, $file ) {
                }
 
                $len = strlen( $text );
-               $maxLen = socket_get_option( $sock, SOL_UDP, SO_SNDBUF );
+               $maxLen = socket_get_option( $sock, SOL_SOCKET, SO_SNDBUF );
 
                if ( $len > $maxLen ) {
                        $len = $maxLen - 1;