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_9.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_9.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_local_var_9.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_9.phpt b/src/tests/disable_function/disabled_function_local_var_9.phpt index 458d878..5844458 100644 --- a/src/tests/disable_function/disabled_function_local_var_9.phpt +++ b/src/tests/disable_function/disabled_function_local_var_9.phpt | |||
| @@ -12,10 +12,10 @@ namespace qwe { | |||
| 12 | namespace asd { | 12 | namespace asd { |
| 13 | const asd = 'qwe'; | 13 | const asd = 'qwe'; |
| 14 | echo "Valeur: " . \qwe\QWE[123]. "\n"; | 14 | echo "Valeur: " . \qwe\QWE[123]. "\n"; |
| 15 | strlen("qwe"); | 15 | strtoupper("qwe"); |
| 16 | } | 16 | } |
| 17 | ?> | 17 | ?> |
| 18 | --EXPECTF-- | 18 | --EXPECTF-- |
| 19 | Valeur: asdfgh | 19 | Valeur: asdfgh |
| 20 | 20 | ||
| 21 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_9.php on line 8 \ No newline at end of file | 21 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_9.php on line 8 \ No newline at end of file |
