|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-02-10 15:53 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-02-10 15:53 UTC] cmb@php.net
[2021-02-21 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
Description: ------------ Faulty implementation within php_ssh2_fopen_wraper_parse_path function (ssh2_fopen_wrappers.c) makes it impossible to open files containing # within the file name via sftp. Comment included in lines 221-224 suggests that fragment and query are included within the path. resource->path does not include this information, fragment and query are stripped, therefore usage of # is not possible, Test script: --------------- $connection=ssh2_connect($host, $port); ssh2_auth_password($connection, $username, $password); $sftp = ssh2_sftp($connection); $remote_file = '/SomePath/SomeFile_#.csv'; $stream = fopen("ssh2.sftp://$sftp".$remote_file, 'r');