summaryrefslogtreecommitdiff
path: root/tests/include/require_once_tmpvar.phpt
blob: 956b5630c1e690a708b7377c89b73d67ed174068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Require_once "Temp Variable URL";
--SKIPIF--
<?php include "../skipifcli.inc"; ?>
--INI--
suhosin.log.syslog=0
suhosin.log.sapi=255
suhosin.log.script=0
suhosin.log.phpscript=0
suhosin.executor.include.whitelist=
suhosin.executor.include.blacklist=
--FILE--
<?php
    $var = "http://127.0.0.1/";
    $app = "?";
    require_once $var.$app;
?>
--EXPECTF--
ALERT - Include filename ('http://127.0.0.1/?') is a URL that is not allowed (attacker 'REMOTE_ADDR not set', file '%s', line 4)