summaryrefslogtreecommitdiffstats
path: root/pcov-php84.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-07-12 10:27:33 +0200
committerRemi Collet <remi@php.net>2024-07-12 10:27:33 +0200
commit8ac75bc71b8f8333afb1a0606f5b24601aec3f49 (patch)
tree3ce9884ec6113f47d55c92b2c4bd1fd03046396a /pcov-php84.patch
parent14670d11945bb18df829363393fc9d41d9927e77 (diff)
add patch for PHP 8.4 from
https://github.com/krakjoe/pcov/pull/111
Diffstat (limited to 'pcov-php84.patch')
-rw-r--r--pcov-php84.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pcov-php84.patch b/pcov-php84.patch
new file mode 100644
index 0000000..238c7bf
--- /dev/null
+++ b/pcov-php84.patch
@@ -0,0 +1,25 @@
+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(