|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-12-14 19:37 UTC] mike dot mackintosh at angrystatic dot com
[2011-12-16 13:46 UTC] mail_0000 at mail dot ru
[2012-06-16 21:01 UTC] langemeijer@php.net
[2012-06-16 21:01 UTC] langemeijer@php.net
-Status: Open
+Status: Feedback
[2012-10-16 19:09 UTC] langemeijer@php.net
[2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
[2013-11-18 14:10 UTC] s dot horsman at erasmusmc dot nl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 01:00:02 2025 UTC |
Description: ------------ ssh2_scp_recv creates zero size file thus the function returns "true", thus ssh2_scp_send works perfectly Also this bug was found with php 5.3.6, 5.3.5, 5.2.1, 5.2.17, 4.4.5 openssl v 0.9.8r 1.0.0d Reproduce code: --------------- <?php $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); ssh2_scp_recv($connection, '/remote/filename', '/local/filename'); ?> Expected result: ---------------- create a full copy of /remote/filename /local/filename Actual result: -------------- function creates /local/filename and returns true, but the file has no data and its size is 0 bytes