[wp-cvs] wordpress/wp-includes functions.php,1.220,1.221

Matthew Mullenweg saxmatt at users.sourceforge.net
Thu Dec 9 00:25:13 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2207/wp-includes

Modified Files:
	functions.php 
Log Message:
Don't show errors if we can't fsockopen a server.

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.220
retrieving revision 1.221
diff -C2 -d -r1.220 -r1.221
*** functions.php	8 Dec 2004 14:40:40 -0000	1.220
--- functions.php	9 Dec 2004 00:25:07 -0000	1.221
***************
*** 818,822 ****
                      $port    = 80;
                      $timeout = 3;
!                     $fp = fsockopen($host, $port, $err_num, $err_msg, $timeout);
                      if( $fp ) {
                          fputs($fp, $headers );
--- 818,822 ----
                      $port    = 80;
                      $timeout = 3;
!                     $fp = @fsockopen($host, $port, $err_num, $err_msg, $timeout);
                      if( $fp ) {
                          fputs($fp, $headers );
***************
*** 946,950 ****
  
  	// Try to connect to the server at $host
! 	$fp = fsockopen($host, $port, $errno, $errstr, 3);
  	if (!$fp) {
  		// Couldn't open a connection to $host;
--- 946,950 ----
  
  	// Try to connect to the server at $host
! 	$fp = @fsockopen($host, $port, $errno, $errstr, 2);
  	if (!$fp) {
  		// Couldn't open a connection to $host;




More information about the cvs mailing list