From d03c3c8d01f6f507bf844fec07477f30e3db61d9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 23 Feb 2019 12:06:51 +0100 Subject: Fix the testsuite on php8. In php8, it's non-trivial to hook strlen, since this function is usually optimized away by the compiler. --- src/tests/disable_function/disabled_function_local_var_10.phpt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tests/disable_function/disabled_function_local_var_10.phpt') diff --git a/src/tests/disable_function/disabled_function_local_var_10.phpt b/src/tests/disable_function/disabled_function_local_var_10.phpt index 4902972..e50a5a4 100644 --- a/src/tests/disable_function/disabled_function_local_var_10.phpt +++ b/src/tests/disable_function/disabled_function_local_var_10.phpt @@ -8,10 +8,10 @@ sp.configuration_file={PWD}/config/disabled_function_local_var.ini Array('qwe'), '456' => Array('no block this')); var_dump($qwe); -strlen("qwe"); +strtoupper("qwe"); $qwe = Array('123' => Array('qwe'), '456' => Array(Array('block this'))); var_dump($qwe); -strlen("qwe"); +strtoupper("qwe"); ?> --EXPECTF-- array(2) { @@ -42,4 +42,4 @@ array(2) { } } -Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_10.php on line 7 \ No newline at end of file +Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_10.php on line 7 \ No newline at end of file -- cgit v1.3