PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #6044

PEAR_REST::retrieveCacheFirst doesn't return error codes

Details

Submitted2005-11-23 11:47 UTC
Fromcweiske at cweiske dot de
Assignedcellog
StatusClosed
PackagePEAR
PHP VersionIrrelevant
OSany
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