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 » HTML » HTML_Select_Common » Bug #5050

State abbreviations wrong

Details

Submitted2005-08-10 05:12 UTC
Fromme at benlake dot org
Assignedderick
StatusClosed
PackageHTML_Select_Common
PHP Version5.0.4
Roadmaps(Not assigned)

Comments

[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';

[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.