File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
sapi /
tests /
test002.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
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>