r97627 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97626‎ | r97627 | r97628 >
Date:13:57, 20 September 2011
Author:ialex
Status:ok
Tags:
Comment:
Fix for r97328: use SOL_SOCKET instead of SOL_UDP; fixes E_WARNING
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -869,7 +869,7 @@
870870 }
871871
872872 $len = strlen( $text );
873 - $maxLen = socket_get_option( $sock, SOL_UDP, SO_SNDBUF );
 873+ $maxLen = socket_get_option( $sock, SOL_SOCKET, SO_SNDBUF );
874874
875875 if ( $len > $maxLen ) {
876876 $len = $maxLen - 1;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97328Noticed in apache error logs (see below). If the length of the message is lon...reedy20:08, 16 September 2011

Status & tagging log