summaryrefslogtreecommitdiffstats
path: root/pcov-php84.patch
blob: 238c7bf2ca1630d3525319f2a6efeeb9b7d6e83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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(