diff options
Diffstat (limited to 'tests/include/include_too_long.phpt')
| -rw-r--r-- | tests/include/include_too_long.phpt | 18 |
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-- | ||
| 2 | Testing include of too long filename | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.syslog=0 | ||
| 7 | suhosin.log.sapi=255 | ||
| 8 | suhosin.log.script=0 | ||
| 9 | suhosin.log.phpscript=0 | ||
| 10 | suhosin.executor.include.whitelist= | ||
| 11 | suhosin.executor.include.blacklist= | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | $filename1 = str_repeat("A", PHP_MAXPATHLEN+1); | ||
| 15 | include $filename1; | ||
| 16 | ?> | ||
| 17 | --EXPECTF-- | ||
| 18 | ALERT - Include filename ('AAAA%sAAAA') is too long (attacker 'REMOTE_ADDR not set', file '%s', line 3) \ No newline at end of file | ||
