Annotation of embedaddon/php/sapi/tests/test002.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>