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 » Validate » Validate » Bug #6130

Use PEAR::raiseError instead of trigger_error

Details

Request #6130Use PEAR::raiseError instead of trigger_error
Submitted2005-12-02 09:02 UTC
Fromjonathanmartens at gmx dot net
StatusWont fix
PackageValidate
PHP Version5.0.4
OSWin XP SP2
Roadmaps(Not assigned)

Comments

[2005-12-02 09:02 UTC] jonathanmartens at gmx dot net

Description:
------------
Change the throwing of errors to use the PEAR::raiseError function instead of the trigger_error function.

As Validate is a PEAR class it should be able to include it in the default PEAR errorhandler and with the trigger_error fucntion there is no possible solution (AFAIK) to include errors in the validation class in the default error handler.

[2005-12-02 12:18 UTC] at php dot net

We don't not use PEAR_Error as we do not want to put that dep on Validate, there is no requirement at all for a PEAR package to use PEAR_Error