Commit 21204bf59a2 for php.net
commit 21204bf59a2f95c395470c402d077880c8f11cca
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Tue Jul 7 11:01:19 2026 +0200
Fix performance of gh22443.phpt
These millions of iterations don't seem to be necessary to trigger the original
bug.
diff --git a/ext/opcache/tests/jit/gh22443.phpt b/ext/opcache/tests/jit/gh22443.phpt
index 869329b79b5..4baa3f99fc6 100644
--- a/ext/opcache/tests/jit/gh22443.phpt
+++ b/ext/opcache/tests/jit/gh22443.phpt
@@ -45,7 +45,7 @@ function invokeListeners(array $listeners, string $event, array $payload): int {
$cold = [makeListener([$svc, 'coldMethod'])];
$s = 0;
-for ($i = 0; $i < 4000000; $i++) {
+for ($i = 0; $i < 400; $i++) {
$s += invokeListeners($warm, 'e', [$i & 7, ($i >> 2) & 7]);
}
for ($j = 0; $j < 5; $j++) {