summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION21
-rw-r--r--php-pecl-ip2location.spec12
3 files changed, 34 insertions, 1 deletions
diff --git a/PHPINFO b/PHPINFO
index d4e3dcd..2e9407f 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -3,4 +3,4 @@ ip2location
ip2location support => enabled
extension version => 8.3.0
-library version => 8.6.1
+library version => 8.7.0
diff --git a/REFLECTION b/REFLECTION
index 19e273b..ce74a08 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -222,6 +222,27 @@ Extension [ <persistent> extension #90 ip2location version 8.3.0 ] {
}
- Return [ string ]
}
+ Function [ <internal:ip2location> function ip2location_get_as_domain ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $ip_address ]
+ }
+ - Return [ string ]
+ }
+ Function [ <internal:ip2location> function ip2location_get_as_usage_type ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $ip_address ]
+ }
+ - Return [ string ]
+ }
+ Function [ <internal:ip2location> function ip2location_get_as_cidr ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $ip_address ]
+ }
+ - Return [ string ]
+ }
}
}
diff --git a/php-pecl-ip2location.spec b/php-pecl-ip2location.spec
index 15402fe..7944c84 100644
--- a/php-pecl-ip2location.spec
+++ b/php-pecl-ip2location.spec
@@ -143,6 +143,18 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \
REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php -q --show-diff
+if [ -f %{php_extdir}/%{pecl_name}.so ]; then
+ : upstream test suite with old build
+ # Only if same version
+ if %{__php} -n -d extension=%{pecl_name} -r 'exit(phpversion("%{pecl_name}")==="%{upstream_version}%{?upstream_prever}" ? 0 : 1);'
+ then
+ : upstream test suite for extension built with previous version
+ %{__php} --ri %{pecl_name}
+ TEST_PHP_ARGS="-n -d imagick.skip_version_check=1 -d extension=%{pecl_name}" \
+ %{__php} -n run-tests.php -q --show-diff
+ fi
+fi
+
%if %{with_zts}
: simple ZTS module load test
%{__ztsphp} --no-php-ini \