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_crash.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_crash.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_local_var_crash.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_crash.phpt b/src/tests/disable_function/disabled_function_local_var_crash.phpt index 8dec946..3381b6c 100644 --- a/src/tests/disable_function/disabled_function_local_var_crash.phpt +++ b/src/tests/disable_function/disabled_function_local_var_crash.phpt | |||
| @@ -7,12 +7,12 @@ sp.configuration_file={PWD}/config/disabled_function_local_var.ini | |||
| 7 | --FILE-- | 7 | --FILE-- |
| 8 | <?php | 8 | <?php |
| 9 | function test(){ | 9 | function test(){ |
| 10 | echo strlen("id") . "\n"; | 10 | echo strtoupper("id") . "\n"; |
| 11 | } | 11 | } |
| 12 | ob_start(test()); | 12 | ob_start(test()); |
| 13 | echo "test\n"; | 13 | echo "test\n"; |
| 14 | ?> | 14 | ?> |
| 15 | --EXPECTF-- | 15 | --EXPECTF-- |
| 16 | 2 | 16 | ID |
| 17 | test | 17 | test |
| 18 | 18 | ||
