Zend Framework

multiple calls with the same Zend_Rest_Client instance not working

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.1
  • Fix Version/s: 1.7.2
  • Component/s: Zend_Rest_Client
  • Labels:
    None
  • Fix Version Priority:
    Should Have

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
)

?>

Activity

Hide
Satoru Yoshida added a comment -

Solved in SVN r13151

Show
Satoru Yoshida added a comment - Solved in SVN r13151

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
20m
Time Spent - 20 minutes