blob: 05c28232b16426c6ea13451e9bf6d0ea31bcd48b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
Testing include of filename including ASCIIZ character
--DESCRIPTION--
This test will only trigger the PHP internal protection.
If this test case ever breaks then PHP has failed and hopefully Suhosin has kicked in.
--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
$filename1 = "AAAA".chr(0)."AAAA";
include $filename1;
?>
--EXPECTF--
Warning: include(): Failed opening 'AAAA' for inclusion (include_path='%s') in %s on line 3
|