PEAR is archived and read-only

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

Home » Authentication » LiveUser » Bug #2001

standard return types

Details

Request #2001standard return types
Submitted2004-07-28 02:58 UTC
Fromworker at mompopmedia dot com
StatusClosed
PackageLiveUser
PHP Version5.0.0
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-07-28 02:58 UTC] worker at mompopmedia dot com

Description:
------------
Hi,

I have just spent the past week developing a web application that uses LiveUser quite extensively. I really like LiveUser's API -- I find it quite intuitive. However, in certain places I find it difficult to handle the various possible returns from a method, specifically when dealing with failures / errors. For example, outputRightsConstants() returns either a PEAR_Error or false on failure. Ideally, all methods would return a PEAR_Error on failure and only a PEAR_Error. Otherwise examining method results gets pretty crazy.

My $0.02,

Michael

[2004-07-28 20:29 UTC] smith at backendmedia dot com

We have to move the admin API over to ErrorStack as well. Once this is done all methods should return false on error and you can fetch any errors from the stack. If you are interest in helping in that effort we would be greatful. Check out the roadmap on the wiki for details.