note 78756 added to ref.ssh2
| From: | dan at novapulsar dot com | Date: | Fri, 26 Oct 2007 06:06:30 +0000 |
| Subject: | note 78756 added to ref.ssh2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131744@lists.php.net to get a copy of this message | ||
you will have an issue transferring any file using ssh2_scp_send unless you send a dummy file after
your real file, or preferably issue an
ssh2_exec ($connection, 'exit');
I was transferring hundreds of thousands of files in my prototype across multiple servers, and
noticed that each file had a mismatched md5 hash and bytelength.
after a bit of research i learnt that this was a bug, and added the code above as suggested at
pecl.php.net in the bugs section.
hopefully this helps someone who is getting partial file transfer that could ruin your whole app.
----
Server IP: 69.147.83.197
Probable Submitter: 71.202.223.87
----
Manual Page -- http://www.php.net/manual/en/ref.ssh2.php
Edit -- https://master.php.net/note/edit/78756
Del: integrated -- https://master.php.net/note/delete/78756/integrated
Del: useless -- https://master.php.net/note/delete/78756/useless
Del: bad code -- https://master.php.net/note/delete/78756/bad+code
Del: spam -- https://master.php.net/note/delete/78756/spam
Del: non-english -- https://master.php.net/note/delete/78756/non-english
Del: in docs -- https://master.php.net/note/delete/78756/in+docs
Del: other reasons-- https://master.php.net/note/delete/78756
Reject -- https://master.php.net/note/reject/78756
Search -- https://master.php.net/manage/user-notes.php