Permalink
Browse files

Close file descriptor after opening.

  • Loading branch information...
1 parent 1a382af commit ad83f3ab67ee4d7462448969557f393354908f10 @davidpersson davidpersson committed May 21, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/Unit.php
View
@@ -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;

0 comments on commit ad83f3a

Please sign in to comment.