summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_ret_user.phpt
blob: 040756caceb8a65734b2ea1ffc1f34911e5da9ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Check NULL 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";
}
qwe();
echo 1;
?>
--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.php on line %d