summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION4
-rw-r--r--pcov-php84.patch25
-rw-r--r--php-pecl-pcov.spec38
4 files changed, 28 insertions, 41 deletions
diff --git a/PHPINFO b/PHPINFO
index 2980007..46ebfc2 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,7 +2,7 @@
pcov
PCOV support => Disabled
-PCOV version => 1.0.11
+PCOV version => 1.0.12
pcov.directory => auto
pcov.exclude => none
pcov.initial.memory => 65336 bytes
diff --git a/REFLECTION b/REFLECTION
index 11e0352..6103f7b 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #89 pcov version 1.0.11 ] {
+Extension [ <persistent> extension #128 pcov version 1.0.12 ] {
- Dependencies {
Dependency [ pcre (Required) ]
@@ -26,7 +26,7 @@ Extension [ <persistent> extension #89 pcov version 1.0.11 ] {
Constant [ int pcov\all ] { 0 }
Constant [ int pcov\inclusive ] { 1 }
Constant [ int pcov\exclusive ] { 2 }
- Constant [ string pcov\version ] { 1.0.11 }
+ Constant [ string pcov\version ] { 1.0.12 }
}
- Functions {
diff --git a/pcov-php84.patch b/pcov-php84.patch
deleted file mode 100644
index 238c7bf..0000000
--- a/pcov-php84.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 7d764c7c2555e8287351961d72be3ebec4d8743f Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Fri, 12 Jul 2024 10:18:53 +0200
-Subject: [PATCH] Fix php_pcre_match_impl with 8.4
-
----
- pcov.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/pcov.c b/pcov.c
-index f04ba9c..4f7d158 100644
---- a/pcov.c
-+++ b/pcov.c
-@@ -137,7 +137,11 @@ static zend_always_inline zend_bool php_pcov_wants(zend_string *filename) { /* {
- ZSTR_VAL(filename), ZSTR_LEN(filename),
- #endif
- &match, NULL,
-+#if PHP_VERSION_ID >= 80400
-+ false, 0, 0);
-+#else
- 0, 0, 0, 0);
-+#endif
-
- if (zend_is_true(&match)) {
- zend_hash_add_empty_element(
diff --git a/php-pecl-pcov.spec b/php-pecl-pcov.spec
index a0abff5..c0bd544 100644
--- a/php-pecl-pcov.spec
+++ b/php-pecl-pcov.spec
@@ -1,14 +1,16 @@
# remirepo spec file for php-pecl-pcov
#
-# Copyright (c) 2019-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2019-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
%{?scl:%scl_package php-pecl-pcov}
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global pie_vend pecl
+%global pie_proj pcov
%global pecl_name pcov
%global ini_name 40-%{pecl_name}.ini
%global sources %{pecl_name}-%{version}
@@ -16,14 +18,12 @@
Summary: Code coverage driver
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 1.0.11
-Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.0.12
+Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP-3.01
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
-Patch0: %{pecl_name}-php84.patch
-
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.1
@@ -32,10 +32,14 @@ BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
-Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
-Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
-Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
-Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# Extension
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+# PECL
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PIE
+Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version}
%description
@@ -53,8 +57,6 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
-%patch -P0 -p1
-
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PCOV_VERSION/{s/.* "//;s/".*$//;p}' php_pcov.h)
if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
@@ -180,6 +182,16 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.0.12-3
+- rebuild for PHP 8.5.0RC1
+
+* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 1.0.12-2
+- rebuild for 8.5.0alpha3
+
+* Wed Dec 4 2024 Remi Collet <remi@remirepo.net> - 1.0.12-1
+- update to 1.0.12
+- drop patch merged upstream
+
* Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 1.0.11-5
- rebuild for 8.4.0RC1