From 1a5599242f9d86b21d4471dc1095f53f4bb5195d Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Sat, 17 Jan 2004 19:45:25 +0000 Subject: [PATCH] adding info about $argc and $argv in CLI mode --- README.PHP4-TO-PHP5-THIN-CHANGES | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.PHP4-TO-PHP5-THIN-CHANGES b/README.PHP4-TO-PHP5-THIN-CHANGES index 1abf929b5d..28efb579f8 100644 --- a/README.PHP4-TO-PHP5-THIN-CHANGES +++ b/README.PHP4-TO-PHP5-THIN-CHANGES @@ -45,3 +45,7 @@ is used, thus both // and /* */ are resolved as the T_COMMENT constant. However the PHPDoc style comments /** */ ,which starting PHP5 are parsed by PHP, are recongnized as T_DOC_COMMENT. + +7. $argv and $argc are populated always in CLI mode. On the other hand + $_SERVER['argc'] and $_SERVER['argv'] will be available if "S" is contained + in the "variables_order" php.ini setting. -- 2.50.1