|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
17 + 31 = ?
Subscribe to this entry?

 [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 Feb 26 14:01:28 2020 UTC