mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
dont even run the test
This commit is contained in:
@@ -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(`
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user