Lines Matching refs:argv
602 static int do_cli(int argc, char **argv) /* {{{ */ in do_cli() argument
626 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
636 EG(exit_status) = (c == '?' && argc > 1 && !strchr(argv[1], c)); in do_cli()
689 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
871 strcmp(argv[php_optind-1],"--") in do_cli()
892 && strcmp(argv[php_optind-1],"--")) in do_cli()
894 script_file=argv[php_optind]; in do_cli()
925 arg_excp = argv+php_optind-1; in do_cli()
926 arg_free = argv[php_optind-1]; in do_cli()
928 argv[php_optind-1] = php_self; in do_cli()
929 SG(request_info).argv=argv+php_optind-1; in do_cli()
949 memset(argv[i], 0, strlen(argv[i])); in do_cli()
1159 int main(int argc, char *argv[]) in WinMain()
1165 char **argv = __argv; in WinMain() local
1169 char **argv_save = argv; in WinMain()
1188 argv = save_ps_args(argc, argv); in WinMain()
1242 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 1, 2))!=-1) { in WinMain()
1292 php_cli_usage(argv[0]); in WinMain()
1295 php_cli_usage(argv[0]); in WinMain()
1317 sapi_module->executable_location = argv[0]; in WinMain()
1352 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain()
1367 exit_status = do_cli(argc, argv); in WinMain()
1370 exit_status = do_cli_server(argc, argv); in WinMain()
1395 PHP_WIN32_CP_FREE_ARRAY(argv, argc); in WinMain()
1398 argv = argv_save; in WinMain()
1404 cleanup_ps_args(argv); in WinMain()