From 3afd13b0cd9014321c4f1d4c7bf6ee7e9549bfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Wed, 2 Dec 2026 17:49:10 +0100 Subject: [PATCH] test: skip the getenv JIT test on 386 The OPcache JIT of PHP 8.2 to 8.4 segfaults in this test on 32-bit x86 Alpine images, while the same images pass with PHP 8.5 and 8.6. --- frankenphp_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frankenphp_test.go b/frankenphp_test.go index 39d5aba764..2d77ab006f 100644 --- a/frankenphp_test.go +++ b/frankenphp_test.go @@ -987,6 +987,10 @@ func TestEnvIsResetInNonWorkerMode(t *testing.T) { } func TestGetenvWithJIT(t *testing.T) { + if runtime.GOARCH == "386" { + t.Skip("the OPcache JIT of PHP 8.2 to 8.4 crashes on 32-bit x86 Alpine") + } + runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, _ int) { if body, _ := testGet("http://example.com/ini.php?key=opcache.jit", handler, t); body == "opcache.jit:" { t.Skip("OPcache is not loaded")