You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to connect to one of my client's SFTP server
I am able to connect and call nlist on multiple server but one of the server is giving me this error when I try to call "nlist" function to list the directory: 1094928464 bytes needed; 97 bytes available
The issue started when we updated composer from 3.0.14 to 3.0.19, downgrading it won't fix the issue in production environment but does work on my local
If I updated the code in vendor\phpseclib\phpseclib\phpseclib\Net\SFTP.php
from (PHP_INT_SIZE == 4 ? -1 : 0xFFFFFFFF) => 'NET_SFTP_ATTR_EXTENDED'
to (-1 << 31) & 0xFFFFFFFF => 'NET_SFTP_ATTR_EXTENDED'
I am able to call the nlist method correctly and it list the directory
Production Environment setup
CentOS release 6.9 (Final)
PHP 5.6.30 (cli) (built: Jan 19 2017 08:09:42)
64-bit System
"phpseclib/phpseclib": "3.0.19",
The text was updated successfully, but these errors were encountered:
Trying to connect to one of my client's SFTP server
I am able to connect and call nlist on multiple server but one of the server is giving me this error when I try to call "nlist" function to list the directory:
1094928464 bytes needed; 97 bytes available
The issue started when we updated composer from 3.0.14 to 3.0.19, downgrading it won't fix the issue in production environment but does work on my local
If I updated the code in vendor\phpseclib\phpseclib\phpseclib\Net\SFTP.php
from
(PHP_INT_SIZE == 4 ? -1 : 0xFFFFFFFF) => 'NET_SFTP_ATTR_EXTENDED'
to
(-1 << 31) & 0xFFFFFFFF => 'NET_SFTP_ATTR_EXTENDED'
I am able to call the nlist method correctly and it list the directory
Production Environment setup
The text was updated successfully, but these errors were encountered: