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)    

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


 [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 by the end of next Sunday (CET). If this was a problem with the 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 :)