From 510a9ea44353359b213c3827f5d1abb5405a5bea Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 8 Nov 2023 08:39:05 +0100 Subject: [PATCH 1/2] Fix GH-12628: The gh11374 test fails on Alpinelinux --- ext/pcre/tests/gh11374.phpt | 6 ++++++ ext/zend_test/test.c | 9 +++++++++ ext/zend_test/test.stub.php | 2 ++ ext/zend_test/test_arginfo.h | 10 +++++++--- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/ext/pcre/tests/gh11374.phpt b/ext/pcre/tests/gh11374.phpt index 07f8f4bccfd0a..29f6485cc0440 100644 --- a/ext/pcre/tests/gh11374.phpt +++ b/ext/pcre/tests/gh11374.phpt @@ -1,5 +1,11 @@ --TEST-- GH-11374 (PCRE regular expression without JIT enabled gives different result) +--EXTENSIONS-- +zend_test +--SKIPIF-- + --FILE-- Date: Wed, 8 Nov 2023 17:56:35 +0100 Subject: [PATCH 2/2] Fix ZPP arginfo violation --- ext/zend_test/test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/zend_test/test.c b/ext/zend_test/test.c index 467acceda1ba3..2f3ff6d9009e6 100644 --- a/ext/zend_test/test.c +++ b/ext/zend_test/test.c @@ -366,6 +366,7 @@ static ZEND_FUNCTION(zend_test_crash) static ZEND_FUNCTION(zend_test_is_pcre_bundled) { + ZEND_PARSE_PARAMETERS_NONE(); #if HAVE_BUNDLED_PCRE RETURN_TRUE; #else