php-src/tests/basic/011.phpt
Dmitry Stogov 00c81b0e49 Fixed register_argc_argv behavior. Now it behave in the same way as before in combinations with variables_order and auto_globals_jit.
$argc and $argv global variables are registered only in CLI mode and under $_SERVER[] in other case. (This is done because register_globals was removed and assumed - off).
2006-03-20 10:18:50 +00:00

21 lines
309 B
PHP

--TEST--
Testing $argc and $argv handling (GET)
--SKIPIF--
<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
--INI--
register_argc_argv=1
--GET--
ab+cd+ef+123+test
--FILE--
<?php
for ($i=0; $i<$_SERVER['argc']; $i++) {
echo "$i: ".$_SERVER['argv'][$i]."\n";
}
?>
--EXPECT--
0: ab
1: cd
2: ef
3: 123
4: test