Lines Matching refs:argv
602 static int do_cli(int argc, char **argv) /* {{{ */ in do_cli() argument
622 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
632 EG(exit_status) = (c == '?' && argc > 1 && !strchr(argv[1], c)); in do_cli()
687 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
862 strcmp(argv[php_optind-1],"--") in do_cli()
881 && strcmp(argv[php_optind-1],"--")) in do_cli()
883 script_file=argv[php_optind]; in do_cli()
908 arg_excp = argv+php_optind-1; in do_cli()
909 arg_free = argv[php_optind-1]; in do_cli()
911 argv[php_optind-1] = (char*)file_handle.filename; in do_cli()
912 SG(request_info).argv=argv+php_optind-1; in do_cli()
933 memset(argv[i], 0, strlen(argv[i])); in do_cli()
1129 int main(int argc, char *argv[]) in WinMain()
1135 char **argv = __argv; in WinMain() local
1139 char **argv_save = argv; in WinMain()
1158 argv = save_ps_args(argc, argv); in WinMain()
1212 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 1, 2))!=-1) { in WinMain()
1262 php_cli_usage(argv[0]); in WinMain()
1265 php_cli_usage(argv[0]); in WinMain()
1287 sapi_module->executable_location = argv[0]; in WinMain()
1322 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain()
1337 exit_status = do_cli(argc, argv); in WinMain()
1340 exit_status = do_cli_server(argc, argv); in WinMain()
1365 PHP_WIN32_CP_FREE_ARRAY(argv, argc); in WinMain()
1368 argv = argv_save; in WinMain()
1374 cleanup_ps_args(argv); in WinMain()