Even more memory optimizations

This commit is contained in:
Ivailo Hristov 2016-02-25 13:55:49 +02:00
parent 1af19fbf1b
commit 75d4c3b09c

View File

@ -2079,7 +2079,7 @@ class SFTP extends SSH2
} }
return false; return false;
} }
$packet = null;
$read += $packet_size; $read += $packet_size;
$i++; $i++;
} }
@ -2105,6 +2105,7 @@ class SFTP extends SSH2
} else { } else {
fputs($fp, $temp); fputs($fp, $temp);
} }
$temp = null;
break; break;
case NET_SFTP_STATUS: case NET_SFTP_STATUS:
// could, in theory, return false if !strlen($content) but we'll hold off for the time being // could, in theory, return false if !strlen($content) but we'll hold off for the time being
@ -2117,6 +2118,7 @@ class SFTP extends SSH2
} }
throw new \UnexpectedValueException('Expected SSH_FXP_DATA or SSH_FXP_STATUS'); throw new \UnexpectedValueException('Expected SSH_FXP_DATA or SSH_FXP_STATUS');
} }
$response = null;
} }
if ($break_loop) { if ($break_loop) {