Annotation of embedaddon/php/tests/basic/012.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Testing $argc and $argv handling (cli)
                      3: --SKIPIF--
                      4: <?php if(php_sapi_name()!='cli') echo 'skip'; ?>
                      5: --INI--
                      6: register_argc_argv=1
                      7: variables_order=GPS
                      8: --ARGS--
                      9: ab cd ef 123 test
                     10: --FILE--
                     11: <?php 
                     12: 
                     13: if (!ini_get('register_globals')) {
                     14:        $argc = $_SERVER['argc'];
                     15:        $argv = $_SERVER['argv'];
                     16: }
                     17: 
                     18: for ($i=1; $i<$argc; $i++) {
                     19:        echo ($i-1).": ".$argv[$i]."\n";
                     20: }
                     21: 
                     22: ?>
                     23: --EXPECT--
                     24: 0: ab
                     25: 1: cd
                     26: 2: ef
                     27: 3: 123
                     28: 4: test

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