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_chain_call_user_func_ret.phpt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/tests/disabled_functions_chain_call_user_func_ret.phpt') diff --git a/src/tests/disabled_functions_chain_call_user_func_ret.phpt b/src/tests/disabled_functions_chain_call_user_func_ret.phpt index 44c9b24..d0ee389 100644 --- a/src/tests/disabled_functions_chain_call_user_func_ret.phpt +++ b/src/tests/disabled_functions_chain_call_user_func_ret.phpt @@ -21,6 +21,15 @@ echo one('matching') . "\n"; echo one('still not matching') . "\n"; ?> ---XFAIL-- --EXPECTF-- -Match on ret is broken :/ +one +two +not matching_one +one +two + +Warning: [snuffleupagus][disabled_function] Aborted execution on return of the function 'two', because the function returned 'matching_two', which matched a rule in %a/tests/disabled_functions_chain_call_user_func_ret.php on line %d +matching_one +one +two +still not matching_one -- cgit v1.3