Skip to content

Commit

Permalink
Close file descriptor after opening.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms committed May 23, 2012
1 parent 1a382af commit ad83f3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Unit.php
Expand Up @@ -1047,7 +1047,10 @@ protected function _hasNetwork($config = array()) {
});

checkdnsrr($config['host'], 'ANY');
fopen($url, 'r');

if ($handle = fopen($url, 'r')) {
fclose($handle);
}

restore_error_handler();
return !$failed;
Expand Down

0 comments on commit ad83f3a

Please sign in to comment.