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

Bug #17850 New Postalcodes
Submitted: 2010-09-07 19:30 UTC
From: opi Assigned: kguest
Status: Closed Package: Validate_AR (version 0.1.0)
PHP Version: 5.3.3 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-09-07 19:30 UTC] opi (Alexander Opitz)
Description: ------------ The Postalcodes should be validated on first letter against A-Z as they use new region codes. $regexp = $casesens ? '/^[A-Z]\d{4}([A-Z]{3})?$/' : '/^[A-Z]\d{4}([A-Z]{3})?$/i';

Comments

 [2010-09-08 11:37 UTC] doconnor (Daniel O'Connor)
Got a link to some docs or similar?
 [2010-09-08 13:40 UTC] opi (Alexander Opitz)
System described (Spanish): http://www.correoargentino.com.ar/consulta_cpa/home.php Last ISO-3166 change: http://www.iso.org/iso/iso_3166-2_newsletter_ii-2_2010-06-30.pdf Wikipedia entry for postal code system: http://en.wikipedia.org/wiki/Postal_codes_in_Argentina A => Salta Z => Santa Cruz By rereading the ISO change, it seems the implementation is false since beginning. As Salta and Santa Cruz existet before.
 [2010-09-23 15:02 UTC] cweiske (Christian Weiske)
That's wrong. it needs to allow the following: - just 4 numbers: 1229 - one letter + 4 numbers - C1229 - one letter, 4 numbers, 3 letters blockcode - C1229ABF
 [2011-02-26 06:16 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2011-02-26 06:16 UTC] kguest (Ken Guest)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. 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.