Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.2
-
Fix Version/s: 1.7.0
-
Component/s: Zend_Rest_Client
-
Labels:None
Description
note Consider this post Public Domain.
line 43 of Rest/Client/Result.php, within __construct():
$this->_sxml = simplexml_load_string($data);
If the $data is malformed or invalid xml, $this->_sxml can contain (bool) False.
line 147 of Rest/Client/Result.php, within getStatus():
$status = $this->_sxml->xpath('//status/text()');
Since $this->_sxml is (bool) False, it breaks.
Insert at line 147:
if ($this->_sxml === false) return False;
Issue Links
| This issue duplicates: | ||||
| ZF-3705 | Zend_Rest_Client_Result does not check if its operating on an object instance |
|
|
|
Similar issue reported in
ZF-3705I hope this gets fixed in 1.6 as we can not guarantee that a remote service will always serve up valid xml - although it should
ZF-3705I hope this gets fixed in 1.6 as we can not guarantee that a remote service will always serve up valid xml - although it should