From 8ac75bc71b8f8333afb1a0606f5b24601aec3f49 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 12 Jul 2024 10:27:33 +0200 Subject: add patch for PHP 8.4 from https://github.com/krakjoe/pcov/pull/111 --- pcov-php84.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pcov-php84.patch (limited to 'pcov-php84.patch') 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 +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( -- cgit