xref: /PHP-5.3/sapi/tests/test002.phpt (revision d94136fc)
1--TEST--
2Apache style CGI
3--DESCRIPTION--
4Apache likes to set SCRIPT_FILENAME to the php executable
5if you use ScriptAlias configurations, and the proper
6path is in PATH_TRANSLATED.  SCRIPT_NAME in this is faked,
7but that is ok, Apache sets SCRIPT_NAME to the ScriptAlias
8of the executable.
9--ENV--
10return <<<END
11REDIRECT_URL=$scriptname
12PATH_TRANSLATED=$filename
13PATH_INFO=$scriptname
14SCRIPT_NAME=/scriptalias/php
15SCRIPT_FILENAME=$this->conf['TEST_PHP_EXECUTABLE']
16END;
17--FILE--
18<?php
19    echo "HELLO";
20?>
21--EXPECT--
22HELLO