|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64062 cannot transfer files with ssh2_scp_send >80KB
Submitted: 2013-01-24 13:55 UTC Modified: 2013-01-28 12:47 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: verbeamt at gmx dot net Assigned:
Status: Closed Package: ssh2 (PECL)
PHP Version: Irrelevant OS: gentoo linux
Private report: No CVE-ID: None
 [2013-01-24 13:55 UTC] verbeamt at gmx dot net
I'm not able to transfer file bigger 80KB using ssh2_scp_send.
Files smaller 80KB work as expected.

net-libs/libssh2 version 1.4.2
dev-php/pecl-ssh2 version 0.11.3-r1
php dev-lang/php version 5.3.15
also tested with dev-lang/php version 5.4.6 same effects here

php compiled with following use-flags

apache2 berkdb bzip2 cli crypt ctype curl fileinfo filter ftp gdbm hash iconv ipv6 json mysql mysqli nls pcntl pdo phar posix readline session simplexml ssl threads tokenizer unicode xml zlib

Test script:
ssh2_scp_send($conn_ssh, $local_file, $remote_file, 0666)

Expected result:
I expect the file to be transfered

Actual result:
PHP Warning:  ssh2_scp_send(): Failed copying file ...

File is transfered until size of about 80KB is reached then process breaks.

Are there any limits which have to be configured?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-28 12:46 UTC] verbeamt at gmx dot net
Looks like this is fixed with dev-php/pecl-ssh2 version 0.12
 [2013-01-28 12:47 UTC] verbeamt at gmx dot net
looks like this is fixed in dev-php/pecl-ssh2 version 0.12
 [2013-01-28 12:47 UTC] verbeamt at gmx dot net
-Status: Open +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 10:01:28 2023 UTC