Merge branch '1.0' into 2.0

This commit is contained in:
terrafrost 2023-08-24 20:21:13 -05:00
commit 278f8e5f5a
2 changed files with 2 additions and 2 deletions

View File

@ -1441,7 +1441,7 @@ class ASN1
return false;
}
break;
case ($c & 0x80000000) != 0:
case ($c & (PHP_INT_SIZE == 8 ? 0x80000000 : (1 << 31))) != 0:
return false;
case $c >= 0x04000000:
$v .= chr(0x80 | ($c & 0x3F));

View File

@ -871,7 +871,7 @@ class SFTP extends SSH2
$error = $this->status_codes[$status];
if ($this->version > 2 || strlen($response) < 4) {
if ($this->version > 2) {
extract(unpack('Nlength', $this->_string_shift($response, 4)));
$this->sftp_errors[] = $error . ': ' . $this->_string_shift($response, $length);
} else {