Doc #62805 [Opn->Csd]: 'A1' returned by geoip_country_code_by_name('74.115.0.24');

From: Date: Thu, 15 Nov 2012 10:24:45 +0000
Subject: Doc #62805 [Opn->Csd]: 'A1' returned by geoip_country_code_by_name('74.115.0.24');
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9143@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62805&edit=1 ID: 62805 Updated by: krakjoe@php.net Reported by: jasen at treshna dot com Summary: 'A1' returned by geoip_country_code_by_name('74.115.0.24'); -Status: Open +Status: Closed Type: Documentation Problem Package: geoip Operating System: linux PHP Version: 5.3.15 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Updated with a link to Maxmind which includes the descriptions of any special codes. Previous Comments: ------------------------------------------------------------------------ [2012-08-12 23:54:39] jasen at treshna dot com Description: ------------ --- From manual page: http://www.php.net/function.geoip-country-code-by-name --- "Returns the two letter ISO country code on success, or FALSE if the address cannot be found in the database. " <?php echo geoip_country_code_by_name('74.115.0.24'); ?> got result: 'A1' expected result: something from ISO3166 perhaps 'US' 'A1' is actually more useful - it seems to be the code for an 'anonymous proxy' are there other special codes? Test script: --------------- <?php echo geoip_country_code_by_name('74.115.0.24'); ?> Expected result: ---------------- expected something from ISO3166 perhaps 'US' Actual result: -------------- got 'A1' THIS RESULT IS NOT A BUG. the documentation should be amended. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62805&edit=1

« previous php.doc.bugs (#9143) next »