cvs: php4 /tests/basic 012.phpt

From: Date: Wed, 21 Aug 2002 23:10:45 +0000
Subject: cvs: php4 /tests/basic 012.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13535@lists.php.net to get a copy of this message
helly Wed Aug 21 19:10:45 2002 EDT Added files: /php4/tests/basic 012.phpt Log: Test argument passing for CLI Index: php4/tests/basic/012.phpt +++ php4/tests/basic/012.phpt --TEST-- Testing $argc and $argv handling (cli) --SKIPIF-- <?php if(php_sapi_name()!='cli') echo 'skip'; ?> --INI-- register_argc_argv=1 --ARGS-- ab cd ef 123 test --FILE-- <?php if (!ini_get('register_globals')) { $argc = $_SERVER['argc']; $argv = $_SERVER['argv']; } for ($i=1; $i<$argc; $i++) { echo ($i-1).": ".$argv[$i]."\n"; } ?> --EXPECT-- 0: ab 1: cd 2: ef 3: 123 4: test

« previous php.cvs (#13535) next »