summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_param_r.phpt
blob: 722f1260fe09dead92e828075af4a77c7e2ac4c3 (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_param_r.ini
--FILE--
<?php 
system("id");
system("echo win");
?>
--EXPECTF--
Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because its argument 'command' content (id) matched a rule in %a/disabled_functions_param_r.php on line 2