From f61a4772bfc33e08e7b06250e2f0f640bcae875f Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Thu, 30 Aug 2018 14:43:58 +0200 Subject: 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. --- src/tests/disabled_functions_ret_user.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/disabled_functions_ret_user.phpt') 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() { qwe(); echo 1; ?> ---EXPECT-- -1 +--EXPECTF-- +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 -- cgit v1.3