php84Extensions.apcu: fix broken test with PHP 8.4

This commit is contained in:
Pol Dellaiera
2024-07-06 17:08:46 +02:00
committed by Jan Tojnar
parent da9d36be81
commit acfd3859d7
@@ -1,6 +1,7 @@
{
buildPecl,
lib,
fetchpatch,
pcre2,
fetchFromGitHub,
}:
@@ -19,6 +20,22 @@ buildPecl {
sha256 = "sha256-UDKLLCCnYJj/lCD8ZkkDf2WYZMoIbcP75+0/IXo4vdQ=";
};
patches = [
# Fix broken test (apc_entry_002) with PHP 8.4 alpha1
# See https://github.com/krakjoe/apcu/issues/510
(fetchpatch {
url = "https://github.com/krakjoe/apcu/commit/9dad016db50cc46321afec592ea9b49520c1cf13.patch";
hash = "sha256-8CPUNhEGCVVSXWYridN1+4N4JzCfXZbmUIsPYs/9jfk=";
})
# Fix ZTS detection in tests with PHP 8.4
# https://github.com/krakjoe/apcu/pull/511
(fetchpatch {
url = "https://github.com/krakjoe/apcu/commit/15766e615264620427c2db37061ca9614d3b7319.patch";
hash = "sha256-gbSkx47Uo9E28CfJJj4+3ydcw8cXW9NNN/3FuYYTVPY=";
})
];
buildInputs = [ pcre2 ];
doCheck = true;
checkTarget = "test";