File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
sapi /
tests /
test004.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, 6 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 with PATH_INFO
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: --REQUEST--
10: return <<<END
11: PATH_INFO=/path/info
12: END;
13: --ENV--
14: return <<<END
15: REDIRECT_URL=/path
16: PATH_TRANSLATED=/path/info/fpp
17: PATH_INFO=/path/info
18: SCRIPT_NAME=/scriptalias/php
19: SCRIPT_FILENAME=$this->conf['TEST_PHP_EXECUTABLE']
20: END;
21: --FILE--
22: <?php
23: echo $_SERVER['PATH_INFO'];
24: ?>
25: --EXPECT--
26: /path/info
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>