Commit 09bb5f545fe for php
commit 09bb5f545fe4113c77190e70cdc1b9b1a8d0c093
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Thu Dec 3 19:14:26 2026 +0100
[skip ci] Suppress pcntl_getcpuaffinity() warnings in gh24319_001.phpt
This is a best-effort, and fails on Solaris in CI.
diff --git a/ext/opcache/tests/gh24319_001.phpt b/ext/opcache/tests/gh24319_001.phpt
index 452210ceb05..9db5a36ed3f 100644
--- a/ext/opcache/tests/gh24319_001.phpt
+++ b/ext/opcache/tests/gh24319_001.phpt
@@ -77,7 +77,7 @@
}
// Keep readers on different available CPUs where supported.
if (function_exists('pcntl_getcpuaffinity') && function_exists('pcntl_setcpuaffinity')) {
- $cpus = pcntl_getcpuaffinity();
+ $cpus = @pcntl_getcpuaffinity();
if ($cpus) {
pcntl_setcpuaffinity(null, [$cpus[$reader % count($cpus)]]);
}