summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_eval_user.phpt
blob: 421a485f0d843684bb0fe8e7e36e76bea1a2dbe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Disable functions - eval with a disabled user func
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_eval_user_func.ini
--FILE--
<?php 
function my_func() {
	echo "1337\n";
	return 10;
}
$a = 0;
eval('$a = my_func();');
echo '$a = ' . $a . "\n";
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_func' in %a/tests/disabled_functions_eval_user.php:3.