diff options
| author | jvoisin | 2019-02-23 12:06:51 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-23 12:12:45 +0100 |
| commit | d03c3c8d01f6f507bf844fec07477f30e3db61d9 (patch) | |
| tree | 040773d005257a0541da580c26bbb2b0831155b2 /src/tests/disable_function/disabled_function_local_var_obj.phpt | |
| parent | a48297dfc1144931e18073a87ed83ea337e3d37a (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_obj.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_local_var_obj.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_obj.phpt b/src/tests/disable_function/disabled_function_local_var_obj.phpt index 29d57cc..89e423a 100644 --- a/src/tests/disable_function/disabled_function_local_var_obj.phpt +++ b/src/tests/disable_function/disabled_function_local_var_obj.phpt | |||
| @@ -16,11 +16,11 @@ class test_class { | |||
| 16 | $test_array = ['qwe']; | 16 | $test_array = ['qwe']; |
| 17 | $arg = 'qwe'; | 17 | $arg = 'qwe'; |
| 18 | $test = new test_class('qwe', 'qwe'); | 18 | $test = new test_class('qwe', 'qwe'); |
| 19 | echo strlen($test->$arg) . "\n"; | 19 | echo strtoupper($test->$arg) . "\n"; |
| 20 | $test = new test_class('qwe', 'nop_object'); | 20 | $test = new test_class('qwe', 'nop_object'); |
| 21 | echo strlen($test->$arg) . "\n"; | 21 | echo strtoupper($test->$arg) . "\n"; |
| 22 | ?> | 22 | ?> |
| 23 | --EXPECTF-- | 23 | --EXPECTF-- |
| 24 | 3 | 24 | QWE |
| 25 | 25 | ||
| 26 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_obj.php on line 14 \ No newline at end of file | 26 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_obj.php on line 14 |
