From 865d6e674ccac2e8cc259fad605759e896cc4163 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Mon, 9 Dec 2024 04:31:17 +0900 Subject: [PATCH] Enable method intercept in thread safety test Add a call to `method_intercept_enable(true);` in the thread-safety test script. This ensures that the method interception is activated during the test executions, allowing accurate evaluations of thread safety conditions. --- tests/008-rayaop-thread-safety.phpt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/008-rayaop-thread-safety.phpt b/tests/008-rayaop-thread-safety.phpt index 1fad979..ec2da8a 100644 --- a/tests/008-rayaop-thread-safety.phpt +++ b/tests/008-rayaop-thread-safety.phpt @@ -42,6 +42,8 @@ for ($i = 0; $i < 3; $i++) { $test = new TestClass(); $paramsArray = [null, 'test', 'error', 'another test']; +method_intercept_enable(true); + foreach ($paramsArray as $i => $param) { $paramString = isset($param) ? $param : ''; echo "" . PHP_EOL;