summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_ret_user_used.phpt
blob: 7499e1c0797fa838a99267193431d0ee4d97bd67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Check return value for user func
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_ret_user.ini
--FILE--
<?php 
function qwe() {
  return "asd";
}
echo qwe();
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'qwe', because the function returned 'asd', which matched a rule in %a/disabled_functions_ret_user_used.php on line %d