Doc #67203 [NEW]: returns data from wrong database column

From: Date: Mon, 05 May 2014 01:31:53 +0000
Subject: Doc #67203 [NEW]: returns data from wrong database column
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11182@lists.php.net to get a copy of this message
From: phpnet at revmaps dot no-ip dot ord Operating system: linux PHP version: Irrelevant Package: Network related Bug Type: Documentation Problem Bug description:returns data from wrong database column Description: ------------ --- From manual page: http://www.php.net/function.geoip-country-code-by-name --- geoip-country-code-by-name appears to return the "registered_country" rather than the physical location of the server. physical location is "country" in the geoip2 database, please correct the example code and documentation (or if possible fix the function to match the documentation) http://dev.maxmind.com/geoip/geoip2/whats-new-in-geoip2/ geoip_lite seems to only have the datat from registered country column... is this intentional? Test script: --------------- <?php echo geoip_country_code_by_name('46.21.152.252'); // tcptraceroute suggests this server is in USA // whois says it's in USA but administered in Poland. (AS35017) Expected result: ---------------- US Actual result: -------------- NL -- Edit bug report at https://bugs.php.net/bug.php?id=67203&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67203&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67203&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67203&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67203&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67203&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67203&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67203&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67203&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67203&r=support Expected behavior: https://bugs.php.net/fix.php?id=67203&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67203&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67203&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67203&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67203&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67203&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67203&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67203&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67203&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67203&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67203&r=mysqlcfg

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