summaryrefslogtreecommitdiff
path: root/tests/executor/recursion_maxdepth.phpt
blob: ba3ccf0e982e2bcbe0b5a95e07f34032e3fca2ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Testing: suhosin.executor.max_depth
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.max_depth=13
--FILE--
<?php
    function rec($level)
    {
	echo $level,"\n";
	rec(++$level);
    }
    
    rec(2);
?>
--EXPECTF--
2
3
4
5
6
7
8
9
10
11
12
13
ALERT - maximum execution depth reached - script terminated (attacker 'REMOTE_ADDR not set', file '%s', line 4)