summaryrefslogtreecommitdiff
path: root/tests/executor/disable_eval_on.phpt
blob: 49f4936d02f76a720e4e9073cf2dfa8d79cb5004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing: suhosin.executor.disable_eval=1
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.disable_eval=1
--FILE--
<?php
    $x = 0;
    eval('$x = 1;');
    var_dump($x);
?>
--EXPECTF--
ALERT - use of eval is forbidden by configuration (attacker 'REMOTE_ADDR not set', file '%s', line 3)

Fatal error: SUHOSIN - Use of eval is forbidden by configuration in %s(3) : eval()'d code on line 3