<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Cyclic Dependency in ssh2.php</title> 
  <pubDate>Thu, 09 Apr 2026 23:32:30 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8657</link> 
  <atom:link rel="self" type="application/rss+xml" title="Cyclic Dependency in ssh2.php" href="https://bugs.horde.org/ticket/8657/rss" /> 
  <description>Cyclic Dependency in ssh2.php</description> 
 
   
   
  <item> 
   <title>The copy function should not use _send and _recv functions b</title> 
   <description>The copy function should not use _send and _recv functions because both (_send and _recv) depend on copy!!!



In _recv and _send the native code is necessary!</description> 
   <pubDate>Thu, 22 Oct 2009 13:20:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56375</link> 
  </item> 
   
  <item> 
   <title>&gt; The copy function should not use _send and _recv functions</title> 
   <description>&gt; The copy function should not use _send and _recv functions because 

&gt; both (_send and _recv) depend on copy!!!

&gt;

&gt; In _recv and _send the native code is necessary!



</description> 
   <pubDate>Thu, 22 Oct 2009 14:49:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56377</link> 
  </item> 
   
  <item> 
   <title>_recv() and _send() use copy(), not $this-&gt;copy().</title> 
   <description>_recv() and _send() use copy(), not $this-&gt;copy().</description> 
   <pubDate>Thu, 22 Oct 2009 17:46:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56379</link> 
  </item> 
   
  <item> 
   <title>&gt; _recv() and _send() use copy(), not $this-&gt;copy().



The </title> 
   <description>&gt; _recv() and _send() use copy(), not $this-&gt;copy().



The copy function from VFS.php uses read and writeData from ssh2.php, but read and writeData uses _recv and _send! Cyclic Dependency!

</description> 
   <pubDate>Tue, 27 Oct 2009 12:26:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56429</link> 
  </item> 
   
  <item> 
   <title>Are you reading ruby instead of PHP? @ silences errors in PH</title> 
   <description>Are you reading ruby instead of PHP? @ silences errors in PHP, it doesn&#039;t call a class method.</description> 
   <pubDate>Tue, 27 Oct 2009 23:23:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56441</link> 
  </item> 
   
  <item> 
   <title>&gt; Are you reading ruby instead of PHP? @ silences errors in </title> 
   <description>&gt; Are you reading ruby instead of PHP? @ silences errors in PHP, it 

&gt; doesn&#039;t call a class method.



Joke?



From lib/VFS/ssh2.php:



Look at these functions:



    /**

     * Sends local file to remote host.

     * This function exists because the php_scp_* functions doesn&#039;t seem to work on some hosts.

     *

     * @access private

     *

     * @param string $local   Full path to the local file.

     * @param string $remote  Full path to the remote location.

     *

     * @return boolean TRUE on success, FALSE on failure.

     */

    function _send($local, $remote)

    {

        return copy($local, $this-&gt;_wrap($remote));

    }



    /**

     * Receives file from remote host.

     * This function exists because the php_scp_* functions doesn&#039;t seem to work on some hosts.

     *

     * @access private

     *

     * @param string $local  Full path to the local file.

     * @param string $remote Full path to the remote location.

     *

     * @return boolean TRUE on success, FALSE on failure.

     */

    function _recv($remote, $local)

    {

        return copy($this-&gt;_wrap($remote), $local);

    }



Which copy methode is here called?



Kind regards!</description> 
   <pubDate>Wed, 28 Oct 2009 08:28:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56448</link> 
  </item> 
   
  <item> 
   <title>Please stop teaching us how PHP works!

http://www.php.net/c</title> 
   <description>Please stop teaching us how PHP works!

http://www.php.net/copy</description> 
   <pubDate>Wed, 28 Oct 2009 08:37:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56449</link> 
  </item> 
   
  <item> 
   <title>This ticket added the new code: http://bugs.horde.org/ticket</title> 
   <description>This ticket added the new code: http://bugs.horde.org/ticket/8323



You changed the native ssh2 scp functions with _recv and _send!

They use a copy methode with two arguments (source and destination).

But you have implemented a copy methode with three arguments (path, name and destination).



Why this action?</description> 
   <pubDate>Wed, 28 Oct 2009 08:46:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56450</link> 
  </item> 
   
  <item> 
   <title>Sorry my fault!

This is the native copy methode from php.

</title> 
   <description>Sorry my fault!

This is the native copy methode from php.

I will test it again and report my results!



Sorry!



Kind regards,</description> 
   <pubDate>Wed, 28 Oct 2009 08:49:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56451</link> 
  </item> 
   
  <item> 
   <title>&gt; Sorry my fault!

&gt; This is the native copy methode from ph</title> 
   <description>&gt; Sorry my fault!

&gt; This is the native copy methode from php.

&gt; I will test it again and report my results!

&gt;

&gt; Sorry!

&gt;

&gt; Kind regards,



It&#039;s not possible to send or receive any file with the copy function.

There are no error messages in the php log nor in the horde log.</description> 
   <pubDate>Wed, 28 Oct 2009 12:49:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56454</link> 
  </item> 
   
  <item> 
   <title>Dear Horde Team!

I tested it and i have problems to read </title> 
   <description>Dear Horde Team!

I tested it and i have problems to read and write with the native copy function from php.
I use centos 5 with php version 5.1.6

kind regards</description> 
   <pubDate>Wed, 11 Nov 2009 10:00:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8657#t56667</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
