Lines Matching refs:arg_start
57 … *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start) /* {{{ */ in php_getopt() argument
99 arg_start = 2; in php_getopt()
102 if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) { in php_getopt()
103 arg_end = pos-&argv[*optind][arg_start]; in php_getopt()
104 arg_start++; in php_getopt()
121 arg_start += (int)strlen(opts[php_optidx].opt_name); in php_getopt()
133 arg_start = 1 + optchr; in php_getopt()
147 arg_start++; in php_getopt()
159 if (!argv[*optind][arg_start]) { in php_getopt()
170 } else if (argv[*optind][arg_start] == '=') { in php_getopt()
171 arg_start++; in php_getopt()
172 *optarg = &argv[*optind][arg_start]; in php_getopt()
175 *optarg = &argv[*optind][arg_start]; in php_getopt()
181 if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { in php_getopt()