File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / 011.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

    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>