summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_nul_byte.phpt
blob: 62f4ab54881f5e5b2c067237bf04792901298c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Disable functions with nul byte
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_nul_byte.ini
--FILE--
<?php 
system("\0id");
system("id");

?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument '$command' content (0id) matched a rule in %a/disabled_functions_nul_byte.php on line 2