Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.5

Request #12498 Suggestion for US ZIP code validation
Submitted: 2007-11-21 16:17 UTC
From: gauthierm Assigned: davidc
Status: Closed Package: Validate_US (version 0.5.2)
PHP Version: 5.2.4 OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 38 - 9 = ?

 
 [2007-11-21 16:17 UTC] gauthierm (Michael Gauthier)
Description: ------------ Check out the validateByState() code in Store/StorePostalCodeEntry.php at http://pear.silverorange.com/get/Store-1.10.11.tgz. It is a fairly exhaustive ZIP code validation routine that is used in production. It could be adapted fairly easily into Validate_US.

Comments

 [2008-03-22 19:12 UTC] davidc (David Coallier)
Think you could cook us a little patch there ? :)
 [2008-03-22 19:33 UTC] davidc (David Coallier)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Thanks to gauthierm for this patch. Good work :)