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

1.1     ! misho       1: --TEST--
        !             2: path info request without exported PATH_INFO
        !             3: --SKIPIF--
        !             4: <?php include "skipif.inc"; ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: include "include.inc";
        !             9: 
        !            10: $php = get_cgi_path();
        !            11: reset_env_vars();
        !            12: 
        !            13: $f = tempnam(sys_get_temp_dir(), 'cgitest');
        !            14: 
        !            15: putenv("TRANSLATED_PATH=".$f."/x");
        !            16: putenv("SCRIPT_FILENAME=".$f."/x");
        !            17: file_put_contents($f, '<?php var_dump($_SERVER["TRANSLATED_PATH"]); ?>');
        !            18: 
        !            19: echo (`$php -n $f`);
        !            20: 
        !            21: echo "Done\n";
        !            22: 
        !            23: @unlink($f);
        !            24: ?>
        !            25: --EXPECTF--
        !            26: X-Powered-By: PHP/%s
        !            27: Content-type: text/html%r; charset=.*|%r
        !            28: 
        !            29: string(%d) "%s/x"
        !            30: Done

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