Skip to content

Commit

Permalink
do not run on ZTS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Jan 30, 2024
1 parent a1d0920 commit 846f15f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions profiling/tests/phpt/jit_01.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 846f15f

Please sign in to comment.