Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nlist method giving the following error: 1094928464 bytes needed; 97 bytes available #1907

Closed
Hardikp16 opened this issue Apr 12, 2023 · 2 comments

Comments

@Hardikp16
Copy link

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",

@terrafrost
Copy link
Member

I think 53f967c should fix this.

Thanks!

@terrafrost
Copy link
Member

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants