summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_param_allow.phpt
blob: ac257e4ab0e0d02a29f86f4aacb219592fc8af0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Disable functions - allow
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_param_allow.ini
--FILE--
<?php 
system("echo win");
system("id");
?>
--EXPECTF--
win

Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_param_allow.php on line 3