Lines Matching refs:argv
601 static int do_cli(int argc, char **argv) /* {{{ */ in do_cli() argument
625 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
635 EG(exit_status) = (c == '?' && argc > 1 && !strchr(argv[1], c)); in do_cli()
688 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in do_cli()
870 strcmp(argv[php_optind-1],"--") in do_cli()
891 && strcmp(argv[php_optind-1],"--")) in do_cli()
893 script_file=argv[php_optind]; in do_cli()
924 arg_excp = argv+php_optind-1; in do_cli()
925 arg_free = argv[php_optind-1]; in do_cli()
927 argv[php_optind-1] = php_self; in do_cli()
928 SG(request_info).argv=argv+php_optind-1; in do_cli()
948 memset(argv[i], 0, strlen(argv[i])); in do_cli()
1160 int main(int argc, char *argv[]) in WinMain()
1166 char **argv = __argv; in WinMain() local
1170 char **argv_save = argv; in WinMain()
1188 argv = save_ps_args(argc, argv); in WinMain()
1244 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 1, 2))!=-1) { in WinMain()
1267 php_cli_usage(argv[0]); in WinMain()
1270 php_cli_usage(argv[0]); in WinMain()
1292 sapi_module->executable_location = argv[0]; in WinMain()
1319 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain()
1334 exit_status = do_cli(argc, argv); in WinMain()
1337 exit_status = do_cli_server(argc, argv); in WinMain()
1360 PHP_WIN32_CP_FREE_ARRAY(argv, argc); in WinMain()
1363 argv = argv_save; in WinMain()
1369 cleanup_ps_args(argv); in WinMain()