Home
last modified time | relevance | path

Searched refs:php_optind (Results 1 – 6 of 6) sorted by relevance

/php-src/sapi/cli/
H A Dphp_cli.c601 int php_optind = 1, orig_optind = 1; in do_cli() local
657 php_optind = orig_optind; in do_cli()
845 strcmp(argv[php_optind-1],"--") in do_cli()
862 if (argc > php_optind in do_cli()
866 && strcmp(argv[php_optind - 1],"--")) in do_cli()
868 script_file = argv[php_optind]; in do_cli()
869 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()
[all …]
H A Dphp_cli_server.c2804 int php_optind = 1; in do_cli_server() local
2816 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2))!=-1) { in do_cli_server()
2873 if (argc > php_optind) { in do_cli_server()
2874 router = argv[php_optind]; in do_cli_server()
/php-src/sapi/cgi/
H A Dcgi_main.c139 static int php_optind = 1; variable
1728 int orig_optind = php_optind;
1857 php_optind = orig_optind;
2278 php_optind = orig_optind;
2405 } else if (argc > php_optind) {
2410 SG(request_info).argc = argc - php_optind;
2411 SG(request_info).argv = &argv[php_optind];
2431 for (i = php_optind; i < argc; i++) {
2442 for (i = php_optind; i < argc; i++) {
2604 php_optind = orig_optind;
[all …]
/php-src/sapi/phpdbg/
H A Dphpdbg.c1138 int php_optind, opt, show_banner = 1; in main() local
1186 php_optind = 1; in main()
1194 while ((opt = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in main()
1294 if (!read_from_stdin && argc > php_optind) { in main()
1295 if (!exec && strlen(argv[php_optind])) { in main()
1296 exec = strdup(argv[php_optind]); in main()
1298 php_optind++; in main()
1449 SG(request_info).argc = argc - php_optind + 1; in main()
1452 SG(request_info).argv[i] = estrdup(argv[php_optind - 1 + i]); in main()
1773 php_getopt(-1, argv, OPTIONS, NULL, &php_optind, 0, 0); in main()
/php-src/sapi/fpm/fpm/
H A Dfpm_main.c118 static int php_optind = 1; variable
1550 int orig_optind = php_optind; in main()
1603 while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0, 2)) != -1) { in main()
1730 if (argc != php_optind) { in main()
1742 php_optind = orig_optind; in main()
/php-src/ext/standard/
H A Dbasic_functions.c939 int php_optind = 1; local
1048 while ((o = php_getopt(argc, argv, opts, &php_optarg, &php_optind, 0, 1)) != -1) {
1102 ZEND_TRY_ASSIGN_REF_LONG(zoptind, php_optind);

Completed in 37 milliseconds