Silence pingomatic fsockopen. Props Mark Jaquith. fixes #2522
git-svn-id: https://develop.svn.wordpress.org/trunk@3917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b6a8e40d3
commit
1e87ff8522
@ -23,7 +23,7 @@ $http_request .= "\r\n";
|
||||
$http_request .= $query_string;
|
||||
|
||||
$response = '';
|
||||
if( false !== ( $fs = fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {
|
||||
if ( false !== ( $fs = @fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {
|
||||
fwrite($fs, $http_request);
|
||||
while ( !feof($fs) )
|
||||
$response .= fgets($fs, 1160); // One TCP-IP packet
|
||||
|
Loading…
Reference in New Issue
Block a user