Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464862 - =dev-php/pecl-geoip-1.0.8-r1 - Misses IPv6
Summary: =dev-php/pecl-geoip-1.0.8-r1 - Misses IPv6
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2013-04-06 13:43 UTC by Mireiawen Rose
Modified: 2013-04-07 17:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild file (pecl-geoip-1.0.8-r2.ebuild,709 bytes, text/plain)
2013-04-06 13:45 UTC, Mireiawen Rose
Details
patch itself (pecl-geoip-1.0.8-further-ipv6.patch,9.49 KB, patch)
2013-04-06 13:46 UTC, Mireiawen Rose
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mireiawen Rose 2013-04-06 13:43:06 UTC
PHP GeoIP is missing the IPv6 support; it seems upstream does not have it ready yet, but there is working patch available: https://bugs.php.net/bug.php?id=59124

Reproducible: Always

Steps to Reproduce:
1. Install dev-php/pecl-geoip-1.0.8-r1
2. Have php-page with GeoIP call with IPv6 address:
<?php
header('content-type: text/plain');

var_dump(geoip_country_name_by_name('2001:14b8:1ed::'));
?>

Actual Results:  
Notice: geoip_country_name_by_name(): Host 2a00:1450:4001:c02::71 not found in geo.php on line 4
bool(false)

Expected Results:  
string(7) "Ireland"

As workaround, I wrote ebuild that just patches the source with the patch file from https://bugs.php.net/bug.php?id=59124
Comment 1 Mireiawen Rose 2013-04-06 13:45:20 UTC
Created attachment 344648 [details]
Ebuild file

Ebuild file that applies pecl-geoip-1.0.8-further-ipv6.patch to pecl-geoip 1.0.8
Comment 2 Mireiawen Rose 2013-04-06 13:46:10 UTC
Created attachment 344650 [details, diff]
patch itself

pecl-geoip-1.0.8-further-ipv6.patch from https://bugs.php.net/bug.php?id=59124 just in case
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2013-04-07 17:37:41 UTC
It is better to push upstream to make a release with the patch. We do not have the manpower to maintain patches adding features upstream is not supporting.