blob: 8abdee8631aeaea0cc1f195160242eb5532d8a06 (
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
|
--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.syslog=0
suhosin.log.sapi=0
suhosin.log.script=0
suhosin.log.file=255
suhosin.log.file.time=0
suhosin.log.file.name={PWD}/suhosintest.$$.log.tmp
auto_append_file={PWD}/suhosintest.$$.log.tmp
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)
|