Issues

ZF-5176: multiple calls with the same Zend_Rest_Client instance not working

Description

I found a problem using 1 instance of Zend_Rest_Client and doing multiple calls with parameters to the same server. The problem is that the method is never being set in the data array with the second call.

This worked fine with version 1.6.2, so it looks like the last changes in the __call() method in Zend_Rest_Client broke the external interface.

I suggest to reset the data array after the call to the webservice is being made in the __call method. Or to create a reset() method for resetting the data array.

$client = new Zend_Rest_Client("http://localhost/service.php");

print_r($client->getMoo(66)->get());

returns: Zend_Rest_Client Object ( [_data:protected] => Array ( [method] => getMoo [arg1] => 44 [getMoo] => 44 [rest] => 1 )

print_r($client->getBlah(88)->get());

returns: Zend_Rest_Client Object ( [_data:protected] => Array ( [method] => getMoo [arg1] => 44 [getMoo] => 44 [rest] => 1 [getBlah] => 77 )

?>

Comments

Solved in SVN r13151