dont even run the test

This commit is contained in:
henderkes
2026-03-14 19:34:18 +07:00
parent 7cb94e6d31
commit e9533b8f21
2 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import (
"github.com/caddyserver/caddy/v2"
"github.com/caddyserver/caddy/v2/caddytest"
"github.com/dunglas/frankenphp"
"github.com/dunglas/frankenphp/internal/fastabs"
"github.com/prometheus/client_golang/prometheus/testutil"
"github.com/stretchr/testify/require"
@@ -1544,6 +1545,9 @@ func TestDd(t *testing.T) {
// test to force the opcache segfault race condition under concurrency (~1.7s)
func TestOpcacheReset(t *testing.T) {
if frankenphp.Version().VersionID < 80300 {
t.Skip("opcache reset test requires PHP 8.3+")
}
tester := caddytest.NewTester(t)
tester.InitServer(`
{

View File

@@ -91,6 +91,7 @@ zif_handler orig_opcache_reset;
/* Forward declaration */
PHP_FUNCTION(frankenphp_opcache_reset);
#if PHP_VERSION_ID >= 80300
/* Try to override opcache_reset if opcache is loaded.
* Safe to call multiple times - skips if already overridden in this function
* table. Uses handler comparison instead of orig_opcache_reset check so that
@@ -106,6 +107,7 @@ static void frankenphp_override_opcache_reset(void) {
ZEND_FN(frankenphp_opcache_reset);
}
}
#endif
void frankenphp_update_local_thread_context(bool is_worker) {
is_worker_thread = is_worker;