|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 13:01:24 2023 UTC