From: Alexandre Emsenhuber Date: Tue, 20 Sep 2011 13:57:56 +0000 (+0000) Subject: Fix for r97328: use SOL_SOCKET instead of SOL_UDP; fixes E_WARNING X-Git-Tag: 1.31.0-rc.0~27531 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=d5eacdd950d9bac814f8354754614786525db64f;p=lhc%2Fweb%2Fwiklou.git Fix for r97328: use SOL_SOCKET instead of SOL_UDP; fixes E_WARNING --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index bdf0840c67..cbe28c26e1 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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;