summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
diff options
context:
space:
mode:
authorjvoisin2019-02-23 12:06:51 +0100
committerjvoisin2019-02-23 12:12:45 +0100
commitd03c3c8d01f6f507bf844fec07477f30e3db61d9 (patch)
tree040773d005257a0541da580c26bbb2b0831155b2 /src/tests/disable_function/disabled_functions_regexp_multiple.phpt
parenta48297dfc1144931e18073a87ed83ea337e3d37a (diff)
Fix the testsuite on php8.
In php8, it's non-trivial to hook strlen, since this function is usually optimized away by the compiler.
Diffstat (limited to 'src/tests/disable_function/disabled_functions_regexp_multiple.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_regexp_multiple.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/disable_function/disabled_functions_regexp_multiple.phpt b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
index 79f1fc7..5f68a00 100644
--- a/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
+++ b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
@@ -6,14 +6,14 @@ Disable functions
6sp.configuration_file={PWD}/config/disabled_functions_regexp.ini 6sp.configuration_file={PWD}/config/disabled_functions_regexp.ini
7--FILE-- 7--FILE--
8<?php 8<?php
9echo strlen("id") . "\n"; 9echo strtoupper("id") . "\n";
10echo strcmp("1", "2") . "\n"; 10echo strcmp("1", "2") . "\n";
11print("After") . "\n"; 11print("After") . "\n";
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_functions_regexp_multiple.php on line 2 14Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_functions_regexp_multiple.php on line 2
152 15ID
16 16
17Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php on line 3 17Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php on line 3
18-1 18-1
19After \ No newline at end of file 19After