summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_name_r.phpt
blob: 1ecee149f30e8f7b9702ab78ed78f4c4198f7fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_name_r.ini
--FILE--
<?php 
system("echo 42");
system("echo 1337");
?>
--EXPECTF--
42
1337

Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'system', because the function returned '1337', which matched a rule in %a/disabled_functions_name_r.php on line 3