Annotation of embedaddon/php/tests/basic/011.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Testing $argc and $argv handling (GET)
                      3: --INI--
                      4: register_argc_argv=1
                      5: --GET--
                      6: ab+cd+ef+123+test
                      7: --FILE--
                      8: <?php 
1.1.1.2 ! misho       9: $argc = $_SERVER['argc'];
        !            10: $argv = $_SERVER['argv'];
1.1       misho      11: 
                     12: for ($i=0; $i<$argc; $i++) {
                     13:        echo "$i: ".$argv[$i]."\n";
                     14: }
                     15: 
                     16: ?>
                     17: --EXPECT--
                     18: 0: ab
                     19: 1: cd
                     20: 2: ef
                     21: 3: 123
                     22: 4: test

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