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_4.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_4.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_local_var_4.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_4.phpt b/src/tests/disable_function/disabled_function_local_var_4.phpt index b441576..f0b1291 100644 --- a/src/tests/disable_function/disabled_function_local_var_4.phpt +++ b/src/tests/disable_function/disabled_function_local_var_4.phpt | |||
| @@ -40,7 +40,7 @@ class test_object { | |||
| 40 | $d = new test_object($c); | 40 | $d = new test_object($c); |
| 41 | $a = 1338; | 41 | $a = 1338; |
| 42 | function test(){ | 42 | function test(){ |
| 43 | strlen("qwe"); | 43 | strtoupper("qwe"); |
| 44 | } | 44 | } |
| 45 | echo "Valeur: " . $b['_GET]["obj->nop::qwe']["qwe"][$a]->uio . "\n"; | 45 | echo "Valeur: " . $b['_GET]["obj->nop::qwe']["qwe"][$a]->uio . "\n"; |
| 46 | test(); | 46 | test(); |
| @@ -54,4 +54,4 @@ test(); | |||
| 54 | Valeur: valeur de a | 54 | Valeur: valeur de a |
| 55 | Valeur: valeur de apres | 55 | Valeur: valeur de apres |
| 56 | 56 | ||
| 57 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_4.php on line 36 \ No newline at end of file | 57 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_4.php on line 36 \ No newline at end of file |
