diff options
author | Brian Evans <grknight@gentoo.org> | 2021-11-22 14:57:04 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2021-11-22 14:57:48 -0500 |
commit | 5f648e20972eff6a184f51e0d33c1c2c2e5b4049 (patch) | |
tree | 20e6b8de70320f4412dcf7fc4ea4f148249c7414 /dev-php | |
parent | dev-php/pecl-eio: Version bump for 3.0.0_rc4 (diff) | |
download | gentoo-5f648e20972eff6a184f51e0d33c1c2c2e5b4049.tar.gz gentoo-5f648e20972eff6a184f51e0d33c1c2c2e5b4049.tar.bz2 gentoo-5f648e20972eff6a184f51e0d33c1c2c2e5b4049.zip |
dev-php/pecl-geoip: Update PHP targets
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch | 71 | ||||
-rw-r--r-- | dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild | 7 |
2 files changed, 75 insertions, 3 deletions
diff --git a/dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch b/dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch new file mode 100644 index 000000000000..a2f8353b438c --- /dev/null +++ b/dev-php/pecl-geoip/files/fix-failing-tests-php8-1-1.1.1.patch @@ -0,0 +1,71 @@ +diff --git a/tests/014.phpt b/tests/014.phpt +index 40f3ef8..93bc1f7 100644 +--- a/tests/014.phpt ++++ b/tests/014.phpt +@@ -8,10 +8,9 @@ Checking timezone info with (some) empty fields + <?php + + var_dump(geoip_time_zone_by_country_and_region('US','MA')); +-var_dump(geoip_time_zone_by_country_and_region('US',NULL)); ++var_dump(geoip_time_zone_by_country_and_region('US','')); + var_dump(geoip_time_zone_by_country_and_region('DE')); +-var_dump(geoip_time_zone_by_country_and_region(NULL,'')); +-var_dump(geoip_time_zone_by_country_and_region(NULL,NULL)); ++var_dump(geoip_time_zone_by_country_and_region('','')); + + ?> + --EXPECTF-- +@@ -21,6 +20,3 @@ string(%d) "Europe/%s" + + Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d + bool(false) +- +-Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d +-bool(false) +diff --git a/tests/016.phpt b/tests/016.phpt +index 83c5250..9b2f056 100644 +--- a/tests/016.phpt ++++ b/tests/016.phpt +@@ -8,10 +8,8 @@ Checking geoip_region_name_by_code with (some) empty fields + <?php + + var_dump(geoip_region_name_by_code('CA','')); +-var_dump(geoip_region_name_by_code('CA',NULL)); + var_dump(geoip_region_name_by_code('CA',1)); + var_dump(geoip_region_name_by_code('','QC')); +-var_dump(geoip_region_name_by_code(NULL,'QC')); + var_dump(geoip_region_name_by_code(1,'QC')); + + ?> +@@ -19,12 +17,6 @@ var_dump(geoip_region_name_by_code(1,'QC')); + + Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d + bool(false) +- +-Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d +-bool(false) +-bool(false) +- +-Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d + bool(false) + + Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d +diff --git a/tests/019.phpt b/tests/019.phpt +new file mode 100644 +index 0000000..9493ea3 +--- /dev/null ++++ b/tests/019.phpt +@@ -0,0 +1,13 @@ ++--TEST-- ++Checking geoip_country_code_by_name_v6 (if IPv6 DB installed) ++--SKIPIF-- ++<?php if (!extension_loaded("geoip") || !defined("GEOIP_COUNTRY_EDITION_V6") || !geoip_db_avail(GEOIP_COUNTRY_EDITION_V6)) print "skip"; ?> ++--INI-- ++--FILE-- ++<?php ++ ++var_dump( geoip_country_code_by_name_v6('2001:4860:4860::8888') ); ++ ++?> ++--EXPECT-- ++string(2) "US" diff --git a/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild b/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild index f5bbf1f24038..d7d644983bb4 100644 --- a/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild +++ b/dev-php/pecl-geoip/pecl-geoip-1.1.1-r5.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PHP_EXT_NAME="geoip" DOCS="README ChangeLog" -USE_PHP="php7-2 php7-3 php7-4 php8-0" +USE_PHP="php7-3 php7-4 php8-0 php8-1" inherit php-ext-pecl-r3 @@ -22,4 +22,5 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/fix-failing-tests-1.1.1.patch" "${FILESDIR}/php8-support-1.1.1.patch" + "${FILESDIR}/fix-failing-tests-php8-1-1.1.1.patch" ) |