PEAR is archived and read-only

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

Home » PEAR » PEAR » Bug #1617

PEAR_ErrorStack doesn't return exceptions.

Details

Submitted2004-06-11 21:03 UTC
Fromjon at jellybob dot co dot uk
Assignedcellog
StatusClosed
PackagePEAR
PHP Version5.0.0RC3 (Release Candidate 3)
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-06-11 21:03 UTC] jon at jellybob dot co dot uk

Description:
------------
The documentation for the push method of PEAR_ErrorStack says "returns if compatibility mode is on, a PEAR_Error is also thrown. If the class Exception exists, then one is returned", however the actual code doesn't ever return an exception.

It appears that this is due to $err being returned, rather than $ret, however I don't know the code well enough to be sure it won't break something else.