Lines Matching refs:argv

591 static int do_cli(int argc, char **argv) /* {{{ */  in do_cli()  argument
617 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
659 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
845 strcmp(argv[php_optind-1],"--") in do_cli()
866 && strcmp(argv[php_optind - 1],"--")) in do_cli()
868 script_file = argv[php_optind]; in do_cli()
899 arg_excp = argv + php_optind - 1; in do_cli()
900 arg_free = argv[php_optind - 1]; in do_cli()
902 argv[php_optind - 1] = php_self; in do_cli()
903 SG(request_info).argv = argv + php_optind - 1; in do_cli()
924 memset(argv[i], 0, strlen(argv[i])); in do_cli()
1116 if (context.mode == PHP_CLI_MODE_LINT && argc > php_optind && strcmp(argv[php_optind], "--")) { in do_cli()
1139 int main(int argc, char *argv[]) in WinMain()
1145 char **argv = __argv; in WinMain() local
1149 char **argv_save = argv; in WinMain()
1167 argv = save_ps_args(argc, argv); in WinMain()
1223 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 1, 2))!=-1) { in WinMain()
1246 php_cli_usage(argv[0]); in WinMain()
1249 php_cli_usage(argv[0]); in WinMain()
1271 sapi_module_ptr->executable_location = argv[0]; in WinMain()
1298 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain()
1313 exit_status = do_cli(argc, argv); in WinMain()
1316 exit_status = do_cli_server(argc, argv); in WinMain()
1339 PHP_WIN32_CP_FREE_ARRAY(argv, argc); in WinMain()
1342 argv = argv_save; in WinMain()
1348 cleanup_ps_args(argv); in WinMain()