diff options
| author | xXx-caillou-xXx | 2018-08-30 14:43:58 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-30 12:43:58 +0000 |
| commit | f61a4772bfc33e08e7b06250e2f0f640bcae875f (patch) | |
| tree | 2c26573cdd6ffa9eed1a46291660d82611154eb0 /src/tests/disabled_functions_ret_user.phpt | |
| parent | dcc64e0f1530fbe5d528873977199ceeb715305d (diff) | |
Match on ret improvements
This commit does two things:
- Implement matching on calltraces for ret
- Implement matching on ret of user functions if the return value is not used.
Diffstat (limited to 'src/tests/disabled_functions_ret_user.phpt')
| -rw-r--r-- | src/tests/disabled_functions_ret_user.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/disabled_functions_ret_user.phpt b/src/tests/disabled_functions_ret_user.phpt index 597a6b8..89c1bce 100644 --- a/src/tests/disabled_functions_ret_user.phpt +++ b/src/tests/disabled_functions_ret_user.phpt | |||
| @@ -12,5 +12,5 @@ function qwe() { | |||
| 12 | qwe(); | 12 | qwe(); |
| 13 | echo 1; | 13 | echo 1; |
| 14 | ?> | 14 | ?> |
| 15 | --EXPECT-- | 15 | --EXPECTF-- |
| 16 | 1 | 16 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'qwe', because the function returned 'asd', which matched a rule in %a/tests/disabled_functions_ret_user.php on line %d |
