summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_shell_exec_closure2.phpt
blob: fac6031ed66efce81db1de2355a61ba6bb113756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Disable functions - shell_exec via 1st class closure
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID < 80100) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_extra.ini
--FILE--
<?php
$x = shell_exec(...);
echo $x('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 %a.php on line 3