blob: 984541dd2f1b0a717d76456f9bdee2ea849cea18 (
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")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_nul_byte.ini
--FILE--
<?php
system("\0id");
system("id");
?>
--EXPECTF--
Fatal error: [snuffleupagus][disabled_function] 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
|