Annotation of embedaddon/php/tests/basic/011.phpt, revision 1.1.1.1
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
9:
10: if (!ini_get('register_globals')) {
11: $argc = $_SERVER['argc'];
12: $argv = $_SERVER['argv'];
13: }
14:
15: for ($i=0; $i<$argc; $i++) {
16: echo "$i: ".$argv[$i]."\n";
17: }
18:
19: ?>
20: --EXPECT--
21: 0: ab
22: 1: cd
23: 2: ef
24: 3: 123
25: 4: test
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>