summaryrefslogtreecommitdiff
path: root/tests/executor/allow_symlink_off.phpt
blob: 782d818136809a28874e0fe8c233555fae8c20e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
suhosin.executor.allow_symlink=Off
--SKIPIF--
<?php if (!function_exists("memory_get_usage")) print "skip PHP not compiled with memory_limit support"; ?>
--INI--
error_reporting=E_ALL
open_basedir=
suhosin.log.stdout=255
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.log.sapi=0
suhosin.executor.allow_symlink=Off
--FILE--
<?php
symlink();
ini_set("open_basedir", ".");
symlink();
?>
--EXPECTF--
Warning: symlink() expects exactly 2 parameters, 0 given in %s on line 2
ALERT - symlink called during open_basedir (attacker 'REMOTE_ADDR not set', file '%s', line 4)