Summary | Cyclic Dependency in ssh2.php |
Queue | Horde Base |
Queue Version | 3.3.5 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | rene.plattner (at) uibk (dot) ac (dot) at |
Created | 10/22/2009 (5733 days ago) |
Due | |
Updated | 11/11/2009 (5713 days ago) |
Assigned | |
Resolved | 10/22/2009 (5733 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
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
This is the native copy methode from php.
I will test it again and report my results!
Sorry!
Kind regards,
There are no error messages in the php log nor in the horde log.
This is the native copy methode from php.
I will test it again and report my results!
Sorry!
Kind regards,
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?
http://www.php.net/copy
doesn't call a class method.
From lib/VFS/ssh2.php:
Look at these functions:
/**
* Sends local file to remote host.
* This function exists because the php_scp_* functions doesn'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->_wrap($remote));
}
/**
* Receives file from remote host.
* This function exists because the php_scp_* functions doesn'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->_wrap($remote), $local);
}
Which copy methode is here called?
Kind regards!
doesn't call a class method.
but read and writeData uses _recv and _send! Cyclic Dependency!
Priority ⇒ 1. Low
State ⇒ Not A Bug
New Attachment: ssh2_diff.php
both (_send and _recv) depend on copy!!!
In _recv and _send the native code is necessary!
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Cyclic Dependency in ssh2.php
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
both (_send and _recv) depend on copy!!!
In _recv and _send the native code is necessary!