mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Even more memory optimizations
This commit is contained in:
parent
1af19fbf1b
commit
75d4c3b09c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user