xref: /PHP-5.3/sapi/tests/test005.phpt (revision d94136fc)
1--TEST--
2QUERY_STRING Security Bug
3--DESCRIPTION--
4This bug was present in PHP 4.3.0 only.
5A failure should print HELLO.
6--REQUEST--
7return <<<END
8SCRIPT_NAME=/nothing.php
9QUERY_STRING=$filename
10END;
11--ENV--
12return <<<END
13REDIRECT_URL=$scriptname
14PATH_TRANSLATED=c:\apache\1.3.27\htdocs\nothing.php
15QUERY_STRING=$filename
16PATH_INFO=/nothing.php
17SCRIPT_NAME=/phpexe/php.exe/nothing.php
18SCRIPT_FILENAME=c:\apache\1.3.27\htdocs\nothing.php
19END;
20--FILE--
21<?php
22    echo "HELLO";
23?>
24--EXPECTHEADERS--
25Status: 404
26--EXPECT--
27No input file specified.