Thank's for your reply! But with your help,not all the obstacles has been
overcomed!
with your help: I use echo $server->handle(); instead simply $server->handle();
Luckily :the function with no Parameter runs perfect!(It seems that
docblocks is not neccessary, Without it , it runs well)
But the function with parameter still throws Exception with this message:
*Fatal error*: Uncaught exception 'Zend_XmlRpc_Client_FaultException' with
message 'Failed to parse response' in E:\Program
Files\web\zf\Zend\XmlRpc\Client.php:261 Stack trace: #0 E:\Program
Files\web\zf\Zend\XmlRpc\Client\ServerProxy.php(92):
Zend_XmlRpc_Client->call('hash.hash', Array) #1 [internal function]:
Zend_XmlRpc_Client_ServerProxy->__call('hash', Array) #2 E:\Program
Files\web\zf\client.php(11): Zend_XmlRpc_Client_ServerProxy->hash('12345',
'md5') #3 {main} thrown in *E:\Program
Files\web\zf\Zend\XmlRpc\Client.php*on line
*261*
**
*I have give docs like this *
/**
[EMAIL PROTECTED] string $data
[EMAIL PROTECTED] string $algo
[EMAIL PROTECTED] string
*/
public function hash($data, $algo = 'md5')
{
if(!in_array($algo, $this->algos)) throw new Exception('不支持的hash算法');
return hash($algo, $data);
}
PS:I have overload Zend_XmlRpc_Client with __get,__call, so the $
client->hash->algos()); can run
Apologize for my pool english!
Best regards!