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 #4663

Return/pass reason for failure to validate

Details

Request #4663Return/pass reason for failure to validate
Submitted2005-06-23 04:41 UTC
Fromjamesr at cwa dot co dot nz
StatusWont fix
PackageValidate
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-06-23 04:41 UTC] jamesr at cwa dot co dot nz

Description:
------------
It would be helpful if there were some way to tell the reason a value/object has failed to validate. For example; a number was above the maximum allowed, or a string was shorter than the minimum length allowed.

That way, when validating user-supplied data, more helpful feedback can be given to the user, than simply letting them know their data was invalid.

[2005-07-10 20:30 UTC] jamesr at cwa dot co dot nz

Although most of the functions only do one thing the reasons for faliure may be manifold.

However, it's up to you of course. :-) Thank you very much for considering my suggestion and for responding.