summaryrefslogtreecommitdiff
path: root/tests/include/include_too_long.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/include_too_long.phpt')
-rw-r--r--tests/include/include_too_long.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/include/include_too_long.phpt b/tests/include/include_too_long.phpt
new file mode 100644
index 0000000..91c9958
--- /dev/null
+++ b/tests/include/include_too_long.phpt
@@ -0,0 +1,18 @@
1--TEST--
2Testing include of too long filename
3--SKIPIF--
4<?php include "../skipifcli.inc"; ?>
5--INI--
6suhosin.log.syslog=0
7suhosin.log.sapi=255
8suhosin.log.script=0
9suhosin.log.phpscript=0
10suhosin.executor.include.whitelist=
11suhosin.executor.include.blacklist=
12--FILE--
13<?php
14$filename1 = str_repeat("A", PHP_MAXPATHLEN+1);
15include $filename1;
16?>
17--EXPECTF--
18ALERT - Include filename ('AAAA%sAAAA') is too long (attacker 'REMOTE_ADDR not set', file '%s', line 3) \ No newline at end of file