mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-10-01 16:39:02 +00:00
Avoid calling fclose(false)
The previous code would always call fclose(false) if the file was not successfully opened - resulting in a PHP notice.
This commit is contained in:
parent
bce3c02126
commit
647a1e9a5e
@ -195,7 +195,6 @@ class Net_SCP
|
|||||||
|
|
||||||
$fp = @fopen($data, 'rb');
|
$fp = @fopen($data, 'rb');
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
fclose($fp);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$size = filesize($data);
|
$size = filesize($data);
|
||||||
|
Loading…
Reference in New Issue
Block a user