diff options
| author | jvoisin | 2017-12-28 11:27:06 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-28 11:27:06 +0100 |
| commit | 89432f57aa9769d2efd5b8934241d10b005afd1a (patch) | |
| tree | 017061381147cb34c47ee9325cc3ab26a30c24db /src/tests | |
| parent | ad4c76191bded05c419524a6fe03a14157b767ff (diff) | |
Implement hooking on user-defined functions return values
This should close #99, thanks to @blotus for the implementation idea!
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/disabled_functions_ret_type_object.phpt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/disabled_functions_ret_type_object.phpt b/src/tests/disabled_functions_ret_type_object.phpt index 66f298c..eb07cc3 100644 --- a/src/tests/disabled_functions_ret_type_object.phpt +++ b/src/tests/disabled_functions_ret_type_object.phpt | |||
| @@ -4,8 +4,6 @@ Disable functions check on `ret` by type matching (object). | |||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_ret_type_object.ini | 6 | sp.configuration_file={PWD}/config/disabled_functions_ret_type_object.ini |
| 7 | --XFAIL-- | ||
| 8 | We're not implementing hooking on retval of user functions yet | ||
| 9 | --FILE-- | 7 | --FILE-- |
| 10 | <?php | 8 | <?php |
| 11 | function a(){ | 9 | function a(){ |
| @@ -15,3 +13,4 @@ $var = a(); | |||
| 15 | echo "fail"; | 13 | echo "fail"; |
| 16 | ?> | 14 | ?> |
| 17 | --EXPECTF-- | 15 | --EXPECTF-- |
| 16 | [snuffleupagus][0.0.0.0][disabled_function][drop] The execution has been aborted in %a/tests/disabled_functions_ret_type_object.php:5, because the return value (OBJECT) of the function 'a' matched a rule. | ||
