summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_2.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_function_local_var_2.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_function_local_var_2.phpt')
-rw-r--r--src/tests/disable_function/disabled_function_local_var_2.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_2.phpt b/src/tests/disable_function/disabled_function_local_var_2.phpt
index 5b21d07..5a186cd 100644
--- a/src/tests/disable_function/disabled_function_local_var_2.phpt
+++ b/src/tests/disable_function/disabled_function_local_var_2.phpt
@@ -8,7 +8,7 @@ sp.configuration_file={PWD}/config/disabled_function_local_var.ini
8<?php 8<?php
9$a = 1338; 9$a = 1338;
10function test(){ 10function test(){
11 echo strlen("id") . "\n"; 11 echo strtoupper("id") . "\n";
12} 12}
13echo "Value of a: $a\n"; 13echo "Value of a: $a\n";
14test(); 14test();
@@ -27,7 +27,7 @@ test();
27?> 27?>
28--EXPECTF-- 28--EXPECTF--
29Value of a: 1338 29Value of a: 1338
302 30ID
31Value of a: 31Value of a:
32array(2) { 32array(2) {
33 ["qwe"]=> 33 ["qwe"]=>
@@ -35,7 +35,7 @@ array(2) {
35 [123]=> 35 [123]=>
36 string(3) "nop" 36 string(3) "nop"
37} 37}
382 38ID
39Value of a: 39Value of a:
40array(2) { 40array(2) {
41 ["qwe"]=> 41 ["qwe"]=>
@@ -44,4 +44,4 @@ array(2) {
44 string(5) "block" 44 string(5) "block"
45} 45}
46 46
47Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_2.php on line 4 \ No newline at end of file 47Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_2.php on line 4