|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-12 13:12 UTC] ohill@php.net
[2008-06-12 13:20 UTC] jason at omniti dot com
[2008-06-12 14:14 UTC] ohill@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
Description: ------------ It seems that geoip_record_by_name aims to be an all-encompassing function for as much City details as possible. For some reason, our geoip_country_name_by_name was not working correctly, so I've patched our record_by_name function to include Country Name. It might be helpful to include this in the array returned by geoip_record_by_name since it will make the function more complete, and doesn't incur any additional overhead since the lookup has already been performed at that point. Reproduce code: --------------- geoip.c:431 add_assoc_string(return_value, "country_name", (gir->country_name == NULL) ? "" : gir->country_name, 1);