|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74917 ssh2 api missing binary or ascii transfers modes
Submitted: 2017-07-13 06:12 UTC Modified: 2017-08-10 03:26 UTC
From: jmichae3 at yahoo dot com Assigned: pollita (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 7.1.7 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jmichae3 at yahoo dot com
New email:
PHP Version: OS:


 [2017-07-13 06:12 UTC] jmichae3 at yahoo dot com
ssh2_scp_send(), ssh2_scp_recv()
both of these functions in the documentation are missing a mode of transfer, e.g. ASCII or BINARY as in ftp_put(). 

I wonder if EOL translation has to be done by the driver author by hand on the streams for ASCII mode... and this depends upon  the platforms of both sides, which makes a long list... so I can only assume it's BINARY.

Test script:
use provided examples in manual.

Expected result:
documentation should say whether this is binary or ascii transfer mode if you don't have a choice. people just guess.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-08-10 03:26 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 [2017-08-10 03:26 UTC]
scp is not ftp.

If you want to canonicalize line endings, you can do that easily via script code.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Apr 08 16:01:25 2020 UTC