From 846f15f63c50dc054ca439d499db8edfb9f7a11f Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Tue, 30 Jan 2024 11:39:58 +0100 Subject: [PATCH] do not run on ZTS builds --- profiling/tests/phpt/jit_01.phpt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/profiling/tests/phpt/jit_01.phpt b/profiling/tests/phpt/jit_01.phpt index 1589bd81f38..72e50643449 100644 --- a/profiling/tests/phpt/jit_01.phpt +++ b/profiling/tests/phpt/jit_01.phpt @@ -15,6 +15,15 @@ if (!extension_loaded('datadog-profiling')) $arch = php_uname('m'); if (PHP_VERSION_ID < 80100 && in_array($arch, ['aarch64', 'arm64'])) echo "skip: JIT not available on aarch64 on PHP 8.0", PHP_EOL; + +// TODO: remove once ZTS support for allocation profiling is done +ob_start(); +phpinfo(INFO_GENERAL); +$phpinfo = ob_get_contents(); +ob_end_clean(); +if (strpos($phpinfo, 'Thread Safety => enabled') !== false) { + echo "skip: not support on ZTS builds at the moment"; +} ?> --INI-- datadog.profiling.enabled=yes