Home » PEAR » PEAR » Bug #6044
PEAR_REST::retrieveCacheFirst doesn't return error codes
Details
| Submitted | 2005-11-23 11:47 UTC |
|---|---|
| From | cweiske at cweiske dot de |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | Irrelevant |
| OS | any |
| Roadmaps | (Not assigned) |
Comments
[2005-11-23 11:47 UTC] cweiske at cweiske dot de
Description:
------------
When using the PEAR_REST::retrieveCacheFirst() function and an error occurs (e.g. HTTP/404), no error code is returned. That is a huge problem for frontends which can't decide what to do with the error - e.g. continue with listing the next package, or stop trying because the internet connection is down?
Expected result:
----------------
$error->code !== null
Actual result:
--------------
$error->code === NULL