Annotation of embedaddon/php/sapi/tests/test004.phpt, revision 1.1

1.1     ! misho       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>