summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_eval_simulation.phpt
blob: 06a006ed2989e0305c618f8b6062127870f3c958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Disable functions - eval (simulation)
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_eval_simulation.ini
--FILE--
<?php 
$var = 123456789;
eval('$var = 1337 + 1337;');
print("Variable: $var\n");
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][simulation] The call to the function 'eval' in %a/tests/disabled_functions_eval_simulation.php(%d) : eval()'d code:%d has been disabled.
Variable: 2674