summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_ret_right_hash.phpt
blob: ff683e1e4d44220d3ce09bec49f20ed78bffd77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_ret_right_hash.ini
--FILE--
<?php 
system("echo $((1 + 1336))");
?>
--EXPECTF--
1337
[snuffleupagus][0.0.0.0][disabled_function][drop] The execution has been aborted in %a/tests/disabled_functions_ret_right_hash.php:2, because the return value (1337) of the function 'system' matched a rule.