summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_shell_exec_shutdown_function.phpt
blob: 8dcc40e338b211bae04d49830692184f3794de33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Disable functions - shell_exec via register_shutdown_function
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_extra.ini
--FILE--
<?php
register_shutdown_function('shell_exec', 'ls');
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec', %a matched a rule in Unknown on line 0