Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 131) sorted by relevance

123456

/PHP-5.4/sapi/isapi/stresstest/
H A Dgetopt.c41 ap_optopt = argv[oint][optchr]; in ap_optiserr()
54 if (!dash && (argv[ap_optind][0] != '-')) in ap_getopt()
56 if (!dash && (argv[ap_optind][0] == '-') && !argv[ap_optind][1]) in ap_getopt()
64 if ((argv[ap_optind][0] == '-') && (argv[ap_optind][1] == '-')) in ap_getopt()
72 assert((argv[ap_optind][0] == '-') && argv[ap_optind][1]); in ap_getopt()
79 if (argv[ap_optind][optchr] == ':') in ap_getopt()
90 if (!argv[ap_optind][optchr+1]) in ap_getopt()
104 if(!argv[ap_optind][2]) { in ap_getopt()
108 ap_optarg = argv[ap_optind++]; in ap_getopt()
119 if (!argv[ap_optind][optchr+1]) in ap_getopt()
[all …]
/PHP-5.4/main/
H A Dgetopt.c69 if ((argv[*optind][0] != '-')) { in php_getopt()
72 if (!argv[*optind][1]) in php_getopt()
82 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { in php_getopt()
87 if (argv[*optind][2] == '\0') { in php_getopt()
95 if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) { in php_getopt()
121 if (argv[*optind][optchr] == ':') { in php_getopt()
135 if (!argv[*optind][optchr+1]) { in php_getopt()
152 if (!argv[*optind][arg_start]) { in php_getopt()
161 *optarg = argv[(*optind)++]; in php_getopt()
174 if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { in php_getopt()
[all …]
/PHP-5.4/sapi/milter/
H A Dgetopt.c52 if (!dash && (argv[ap_php_optind][0] != '-')) in ap_php_getopt()
54 if (!dash && (argv[ap_php_optind][0] == '-') && !argv[ap_php_optind][1]) in ap_php_getopt()
62 if ((argv[ap_php_optind][0] == '-') && (argv[ap_php_optind][1] == '-')) in ap_php_getopt()
70 assert((argv[ap_php_optind][0] == '-') && argv[ap_php_optind][1]); in ap_php_getopt()
77 if (argv[ap_php_optind][optchr] == ':') in ap_php_getopt()
88 if (!argv[ap_php_optind][optchr+1]) in ap_php_getopt()
102 if(!argv[ap_php_optind][2]) { in ap_php_getopt()
106 ap_php_optarg = argv[ap_php_optind++]; in ap_php_getopt()
110 ap_php_optarg = &argv[ap_php_optind][2]; in ap_php_getopt()
117 if (!argv[ap_php_optind][optchr+1]) in ap_php_getopt()
[all …]
/PHP-5.4/ext/gd/libgd/
H A Dwebpng.c20 main (int argc, char **argv) in main() argument
45 if (strcmp ("-", argv[argc - 1]) == 0) in main()
52 in = fopen (argv[argc - 1], "rb"); in main()
74 if (!strcmp (argv[i], "--help")) in main()
80 else if (!strcmp (argv[i], "-i")) in main()
89 if (!strcmp (argv[i + 1], "y")) in main()
94 else if (!strcmp (argv[i + 1], "n")) in main()
121 if (!strcmp (argv[i + 1], "none")) in main()
129 index = atoi (argv[i + 1]); in main()
188 else if (!strcmp(argv[i], "-a")) in main()
[all …]
H A Dgd2time.c13 main (int argc, char **argv) in main() argument
28 c = atoi (argv[2]); in main()
29 x = atoi (argv[3]); in main()
30 y = atoi (argv[4]); in main()
31 w = atoi (argv[5]); in main()
32 h = atoi (argv[6]); in main()
39 in = fopen (argv[1], "rb"); in main()
H A Dgdparttopng.c11 main (int argc, char **argv) in main() argument
22 in = fopen (argv[1], "rb"); in main()
29 x = atoi (argv[3]); in main()
30 y = atoi (argv[4]); in main()
31 w = atoi (argv[5]); in main()
32 h = atoi (argv[6]); in main()
43 out = fopen (argv[2], "wb"); in main()
H A Dpngtogd2.c12 main (int argc, char **argv) in main() argument
25 in = fopen (argv[1], "rb"); in main()
38 out = fopen (argv[2], "wb"); in main()
45 cs = atoi (argv[3]); in main()
46 fmt = atoi (argv[4]); in main()
H A Dgd2copypal.c12 main (int argc, char **argv) in main() argument
22 in = fopen (argv[1], "rb"); in main()
36 in = fopen (argv[2], "rb"); in main()
52 out = fopen (argv[2], "wb"); in main()
/PHP-5.4/scripts/dev/generate-phpt/src/setup/
H A DgtCommandLineOptions.php42 public function parse($argv) argument
44 if(count($argv) < 2) {
48 for ($i=1; $i<count($argv); $i++) {
50 if ($this->isShortOption($argv[$i])) {
51 $option = substr($argv[$i], 1);
53 throw new gtUnknownOptionException('Unrecognised command line option ' . $argv[$i]);
58 throw new gtUnknownOptionException('Unknown option ' . $argv[$i]);
66 if (!$this->isValidOptionArg($argv, $i + 1))
68 … throw new gtMissingArgumentException('Missing argument for command line option ' . $argv[$i]);
72 $this->options[$option] = $argv[$i];
/PHP-5.4/ext/spl/examples/
H A Ddba_array.php33 $dba = new DbaArray($argv[1], $argv[2]);
36 $dba[$argv[3]] = $argv[4];
38 var_dump(array('Index' => $argv[3], 'Value' => $dba[$argv[3]]));
H A Ddirectorytree.php29 $length = $argc > 3 ? $argv[3] : -1;
31 echo $argv[1]."\n";
32 foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $key=>$file) {
H A Ddba_dump.php32 $db = new DbaReader($argv[1], $argv[2]);
35 $db = new KeyFilter($db, $argv[3]);
H A Dphar_from_dir.php31 $phar = new Phar($argv[1], 0, 'newphar');
33 $dir = new RecursiveDirectoryIterator($argv[2]);
37 $dir = new RegexIterator($dir, '/'.$argv[3].'/');
/PHP-5.4/ext/mbstring/libmbfl/tests/
H A Dstrcut.c25 int main(int argc, char **argv) in main() argument
36 fprintf(stderr, "Usage: %s lang encoding offset length\n", argv[0]); in main()
40 if ((no_language = mbfl_name2no_language(argv[1])) == in main()
42 printf("Unsupported NLS: %s\n", argv[1]); in main()
46 if ((no_encoding = mbfl_name2no_encoding(argv[2])) == in main()
48 printf("Unsupported encoding: %s\n", argv[2]); in main()
53 offset = strtol(argv[3], NULL, 10); in main()
55 printf("Invalid offset: %s\n", argv[3]); in main()
59 length = strtol(argv[4], NULL, 10); in main()
61 printf("Invalid length: %s\n", argv[4]); in main()
H A Dconv_encoding.c24 int main(int argc, char **argv) in main() argument
35 fprintf(stderr, "Usage: %s lang to_encoding from_encoding\n", argv[0]); in main()
39 if ((no_language = mbfl_name2no_language(argv[1])) == in main()
41 printf("Unsupported NLS: %s\n", argv[1]); in main()
45 if ((to_encoding = mbfl_name2no_encoding(argv[2])) == in main()
47 printf("Unsupported encoding: %s\n", argv[2]); in main()
51 if ((from_encoding = mbfl_name2no_encoding(argv[3])) == in main()
53 printf("Unsupported encoding: %s\n", argv[3]); in main()
H A Dstrwidth.c13 int main(int argc, char **argv) in main() argument
23 fprintf(stderr, "Usage: %s lang encoding\n", argv[0]); in main()
27 if ((no_language = mbfl_name2no_language(argv[1])) == in main()
29 printf("Unsupported NLS: %s\n", argv[1]); in main()
33 if ((no_encoding = mbfl_name2no_encoding(argv[2])) == in main()
35 printf("Unsupported encoding: %s\n", argv[2]); in main()
H A Dconv_kana.c24 int main(int argc, char **argv) in main() argument
35 fprintf(stderr, "Usage: %s encoding flags\n", argv[0]); in main()
39 if ((no_enc = mbfl_name2no_encoding(argv[1])) == in main()
41 printf("Unsupported encoding: %s\n", argv[1]); in main()
48 for (p= argv[2] + strlen(argv[2]); p > argv[2]; ) { in main()
/PHP-5.4/pear/
H A Dfetch.php3 function usage($argv) { argument
5 printf("\tphp %s <http://example.com/file> <localfile>\n", $argv[0]);
51 isset($argv[1], $argv[2]) or usage($argv);
66 $fp = fopen($argv[1], "r", false, $ctx);
67 if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
/PHP-5.4/ext/interbase/
H A Dphp_ibase_udf.c209 if (argv[i]->dsc_flags & DSC_null) { in call_php()
214 switch (argv[i]->dsc_dtype) { in call_php()
221 ZVAL_STRING(argp[i], (char*)argv[i]->dsc_address,0); in call_php()
225 ZVAL_STRINGL(argp[i], (char*)argv[i]->dsc_address, argv[i]->dsc_length,0); in call_php()
234 if (argv[i]->dsc_scale == 0) { in call_php()
235 ZVAL_LONG(argp[i], *(short*)argv[i]->dsc_address); in call_php()
238 ((double)*(short*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
243 if (argv[i]->dsc_scale == 0) { in call_php()
247 ((double)*(ISC_LONG*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
252 l = *(ISC_INT64*)argv[i]->dsc_address; in call_php()
[all …]
/PHP-5.4/tests/basic/
H A D011.phpt2 Testing $argc and $argv handling (GET)
10 $argv = $_SERVER['argv'];
13 echo "$i: ".$argv[$i]."\n";
H A D012.phpt2 Testing $argc and $argv handling (cli)
13 $argv = $_SERVER['argv'];
16 echo ($i-1).": ".$argv[$i]."\n";
/PHP-5.4/TSRM/
H A Dtsrm_nw.c55 char *command = NULL, *argv[MAX_ARGS] = {'\0'}, **env = NULL; local
142 argv[argc] = (char*)malloc(ptrLen + 1);
143 if (!argv[argc]) {
149 if (argv[i])
150 free (argv[i]);
156 strcpy (argv[argc], ptr);
164 envSpec.esArgv = (void **) argv;
198 nameSpec.ssPath = argv[0];
219 if (argv[i])
220 free (argv[i]);
/PHP-5.4/ext/phar/phar/
H A Dclicommand.inc20 protected $argv;
25 function __construct($argc, array $argv)
28 $this->argv = $argv;
35 self::error("Unknown command '${argv[1]}', check ${argv[0]} help\n");
37 $command = $argv[1];
45 if ($argv[$i][0] == '-') {
46 if (strlen($argv[$i]) == 2 && isset($this->args[$argv[$i][1]])) {
47 $arg = $argv[$i][1];
54 self::error("Unknown parameter '${argv[$i]}' to command $command, check ${argv[0]} help\n");
108 return $argv[$i];
[all …]
/PHP-5.4/ext/ereg/regex/
H A Dsplit.c151 main(argc, argv) in main() argument
153 char *argv[];
161 for (n = atoi(argv[3]); n > 0; n--) {
162 (void) strcpy(buf, argv[1]);
165 for (n = atoi(argv[3]); n > 0; n--) {
166 (void) strcpy(buf, argv[1]);
167 (void) split(buf, fields, MNF, argv[2]);
170 dosplit(argv[1], argv[2]);
174 dosplit(buf, argv[1]);
/PHP-5.4/ext/standard/
H A Dpack.c58 efree(argv); \
108 zval ***argv = NULL; in PHP_FUNCTION() local
123 if (Z_ISREF_PP(argv[0])) { in PHP_FUNCTION()
124 SEPARATE_ZVAL(argv[0]); in PHP_FUNCTION()
126 convert_to_string_ex(argv[0]); in PHP_FUNCTION()
176 efree(argv); in PHP_FUNCTION()
216 efree(argv); in PHP_FUNCTION()
225 efree(argv); in PHP_FUNCTION()
319 val = argv[currentarg++]; in PHP_FUNCTION()
335 val = argv[currentarg++]; in PHP_FUNCTION()
[all …]

Completed in 23 milliseconds

123456