php.net |  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
 [2017-07-13 06:12 UTC] jmichae3 at yahoo dot com
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-08-10 03:26 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 [2017-08-10 03:26 UTC] pollita@php.net
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: Fri Dec 04 06:01:23 2020 UTC