|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-10 14:10 UTC] mikesul@php.net
[2009-02-08 09:51 UTC] mikesul@php.net
[2010-01-28 11:00 UTC] rebel29270 at orange dot fr
[2010-01-28 11:46 UTC] rebel29270 at orange dot fr
[2011-06-09 03:23 UTC] andries dot arijs at credimo dot be
[2011-07-01 11:42 UTC] samm at os2 dot kiev dot ua
[2012-07-02 20:26 UTC] langemeijer@php.net
-Status: No Feedback
+Status: Re-Opened
-Assigned To:
+Assigned To: langemeijer
[2012-10-06 09:08 UTC] langemeijer@php.net
[2012-10-16 19:07 UTC] langemeijer@php.net
-Status: Re-Opened
+Status: Feedback
-Assigned To: langemeijer
+Assigned To:
[2012-10-16 19:07 UTC] langemeijer@php.net
[2012-10-31 18:54 UTC] michael at smith-li dot com
[2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ When i use ssh2_scp_send() to copy files it show me a warning saying that the file wasn't copied and the return value of the function is false but the file is truly copied. I tested if the file was really well copied by verifying his md5 hash code and the copy was successful, the file was well copied. Reproduce code: --------------- <? $connection = ssh2_connect('server', 22, array('hostkey'=>'ssh-rsa')) or die("N?o me consegui ligar!"); ssh2_auth_pubkey_file($connection, 'jpedro', '/home/jpedro/.ssh/id_rsa.pub', '/home/jpedro/.ssh/id_rsa','passphrase') or die("Falhou a auth!"); $original_filename = '/home/jpedro/Desktop/example.txt'; $destination_filename = 'example.txt'; ssh2_scp_send($connection, $original_filename, $destination_filename,0755); ?> Expected result: ---------------- I expect that the file is copied and no error or warning should be shown. Actual result: -------------- Warning: ssh2_scp_send() [function.ssh2-scp-send]: Failed copying file in /opt/lampp/htdocs/ligacao_ssh.php on line 24