ZF-10922: Zend_Rest_Client_Result::getStatus() generates PHP Notice with unexpected sxml
Description
We found some notices in our error log.
PHP Notice: Undefined offset: 0 in /usr/local/lib/php/Zend/Rest/Client/Result.php
public function getStatus()
{
$status = $this->_sxml->xpath('//status/text()');
$status = strtolower($status[0]); # HERE WE GET NOTICE
Probably notice is caused by the invalid result. I think you need to check $status like "if (sizeof($result) > 1)" to suppress the notice.
Comments
No comments to display