From 647a1e9a5e324065f221894f793438384e3c6b64 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 3 Dec 2014 19:29:46 +0000 Subject: [PATCH] Avoid calling fclose(false) The previous code would always call fclose(false) if the file was not successfully opened - resulting in a PHP notice. --- phpseclib/Net/SCP.php | 1 - 1 file changed, 1 deletion(-) diff --git a/phpseclib/Net/SCP.php b/phpseclib/Net/SCP.php index 8fae6e6d..389265eb 100644 --- a/phpseclib/Net/SCP.php +++ b/phpseclib/Net/SCP.php @@ -195,7 +195,6 @@ class Net_SCP $fp = @fopen($data, 'rb'); if (!$fp) { - fclose($fp); return false; } $size = filesize($data);