Home
last modified time | relevance | path

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

123456

/PHP-7.3/main/
H A Dgetopt.c76 if ((argv[*optind][0] != '-')) { in php_getopt()
79 if (!argv[*optind][1]) in php_getopt()
89 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { in php_getopt()
94 if (argv[*optind][2] == '\0') { in php_getopt()
102 if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) { in php_getopt()
128 if (argv[*optind][optchr] == ':') { in php_getopt()
142 if (!argv[*optind][optchr+1]) { in php_getopt()
159 if (!argv[*optind][arg_start]) { in php_getopt()
168 *optarg = argv[(*optind)++]; in php_getopt()
181 if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { in php_getopt()
[all …]
/PHP-7.3/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-7.3/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-7.3/sapi/phpdbg/
H A D.phpdbginit51 Setting argv made trivial ...
53 argv 1 2 3 4
54 ^ set argv for next execution
56 argv
60 function argv()
62 $argv = func_get_args();
64 if (!$argv) {
65 $_SERVER['argv'] = array();
73 $argv
77 return $_SERVER['argv'];
[all …]
H A Dcreate-test.php37 if ($argv[$i][0] == "-" && !$post_ddash) {
38 switch (substr($argv[$i], 1)) {
40 $phpdbg = $argv[++$i];
46 $pass_options .= " -d ".escapeshellarg($argv[++$i]);
47 $ini[] = $argv[$i];
54 $real_argv[] = $argv[$i];
/PHP-7.3/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-7.3/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-7.3/ext/interbase/
H A Dphp_ibase_udf.c205 if (argv[i]->dsc_flags & DSC_null) { in call_php()
210 switch (argv[i]->dsc_dtype) { in call_php()
218 ZVAL_STRING(&args[i], (char*)argv[i]->dsc_address); in call_php()
223 ZVAL_STRINGL(&args[i], (char*)argv[i]->dsc_address, argv[i]->dsc_length); in call_php()
229 ((PARAMVARY*)argv[i]->dsc_address)->vary_length); in call_php()
233 if (argv[i]->dsc_scale == 0) { in call_php()
237 ((double)*(short*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
242 if (argv[i]->dsc_scale == 0) { in call_php()
246 ((double)*(ISC_LONG*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php()
251 l = *(ISC_INT64*)argv[i]->dsc_address; in call_php()
[all …]
/PHP-7.3/sapi/cli/
H A Dps_title.c145 char** save_ps_args(int argc, char** argv) in save_ps_args() argument
148 save_argv = argv; in save_ps_args()
167 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args()
183 ps_buffer = argv[0]; in save_ps_args()
226 new_argv[i] = strdup(argv[i]); in save_ps_args()
242 argv = new_argv; in save_ps_args()
261 return argv; in save_ps_args()
273 return argv; in save_ps_args()
431 void cleanup_ps_args(char **argv) in cleanup_ps_args() argument
456 free(argv[i]); in cleanup_ps_args()
[all …]
/PHP-7.3/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-7.3/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-7.3/ext/standard/tests/general_functions/
H A Dbug43293_1.phpt7 $argv = array(1, 2, 3);
9 var_dump($argv);
10 $argv = null;
/PHP-7.3/win32/build/
H A Ddeplister.c46 int main(int argc, char *argv[]) in main() argument
49 argv[1], NULL, argv[2], StatusRoutine); in main()
/PHP-7.3/ext/
H A Dext_skel.php93 function process_args($argv, $argc) { argument
107 $val = $argv[$i];
138 if (!isset($argv[$i + 1]) || ($argv[$i + 1]{0} == '-' && $argv[$i + 1]{1} == '-')) {
140 } else if ($opt == 'dir' && empty($argv[$i + 1])) {
144 … $options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]);
324 $options = process_args($argv, $argc);

Completed in 44 milliseconds

123456