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

Bug #5050 State abbreviations wrong
Submitted: 2005-08-10 05:12 UTC
From: me at benlake dot org Assigned: derick
Status: Closed Package: HTML_Select_Common
PHP Version: 5.0.4 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-10 05:12 UTC] me at benlake dot org
Description: ------------ HTML_Select_Common 1.1 stable The abbreviations being stored by this class are blatantly wrong, and have been wrong for years. No one must use this class to not have reported this. The abbreviations for Alaska and Arkansas are swapped. ----- original snippet ------ class HTML_Select_Common_USState { /** * Constructor * * @access public */ function HTML_Select_Common_USState() { $this->_states['ak'] = 'Alabama'; $this->_states['al'] = 'Alaska'; $this->_states['ar'] = 'Arizona'; ----- snippet ------ http://www.usps.com/ncsc/lookups/usps_abbreviations.html ALABAMA AL ALASKA AK ARIZONA AZ I actually did send an email to the developer about this 2 years ago. Expected result: ---------------- class HTML_Select_Common_USState { /** * Constructor * * @access public */ function HTML_Select_Common_USState() { $this->_states['al'] = 'Alabama'; $this->_states['ak'] = 'Alaska'; $this->_states['ar'] = 'Arizona';

Comments

 [2005-08-10 07:08 UTC] php at derickrethans dot nl
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.