diff options
| author | xXx-caillou-xXx | 2018-08-28 18:13:29 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-28 16:13:29 +0000 |
| commit | 888242c30d822392953e1b5f4fc289a96e9da5e0 (patch) | |
| tree | b687185d02018594f5c28743a503816cdf291876 /src/tests/disabled_functions_ret_user.phpt | |
| parent | 2950b59dad013a0c47e4d38d43db3de759c07cad (diff) | |
Fix a SIGSEGV on user-created function's return value
Diffstat (limited to 'src/tests/disabled_functions_ret_user.phpt')
| -rw-r--r-- | src/tests/disabled_functions_ret_user.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/disabled_functions_ret_user.phpt b/src/tests/disabled_functions_ret_user.phpt new file mode 100644 index 0000000..597a6b8 --- /dev/null +++ b/src/tests/disabled_functions_ret_user.phpt | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --TEST-- | ||
| 2 | Check NULL return value for user func | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_ret_user.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function qwe() { | ||
| 10 | return "asd"; | ||
| 11 | } | ||
| 12 | qwe(); | ||
| 13 | echo 1; | ||
| 14 | ?> | ||
| 15 | --EXPECT-- | ||
| 16 | 1 | ||
