PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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