Home
last modified time | relevance | path

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

12345

/php-src/main/
H A Dgetopt.c74 if ((argv[*optind][0] != '-')) { in php_getopt()
77 if (!argv[*optind][1]) in php_getopt()
87 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { in php_getopt()
92 if (argv[*optind][2] == '\0') { in php_getopt()
126 if (argv[*optind][optchr] == ':') { in php_getopt()
140 if (!argv[*optind][optchr+1]) { in php_getopt()
157 if (!argv[*optind][arg_start]) { in php_getopt()
166 *optarg = argv[(*optind)++]; in php_getopt()
170 *optarg = &argv[*optind][arg_start]; in php_getopt()
179 if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { in php_getopt()
[all …]
/php-src/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()
H A Dgdtopng.c10 main (int argc, char **argv) in main() argument
19 in = fopen (argv[1], "rb"); in main()
32 out = fopen (argv[2], "wb"); in main()
H A Dpngtogd.c11 main (int argc, char **argv) in main() argument
20 in = fopen (argv[1], "rb"); in main()
33 out = fopen (argv[2], "wb"); in main()
H A Dgd2topng.c11 main (int argc, char **argv) in main() argument
20 in = fopen (argv[1], "rb"); in main()
33 out = fopen (argv[2], "wb"); in main()
/php-src/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.php35 if ($argv[$i][0] == "-" && !$post_ddash) {
36 switch (substr($argv[$i], 1)) {
38 $phpdbg = $argv[++$i];
44 $pass_options .= " -d ".escapeshellarg($argv[++$i]);
45 $ini[] = $argv[$i];
52 $real_argv[] = $argv[$i];
/php-src/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-src/
H A Drun-tests.php372 if (!isset($argc, $argv) || !$argc) {
373 $argv = [__FILE__];
378 $argv = array_merge($argv, explode(' ', getenv('TEST_PHP_ARGS')));
379 $argc = count($argv);
384 $switch = substr($argv[$i], 1, 1);
453 $conf_passed = $argv[++$i];
501 $php = $argv[++$i];
515 $output_file = $argv[++$i];
545 $temp_source = $argv[++$i];
592 $switch = $argv[$i];
[all …]
/php-src/sapi/cli/
H A Dps_title.c147 char** save_ps_args(int argc, char** argv) in save_ps_args() argument
150 save_argv = argv; in save_ps_args()
170 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args()
187 ps_buffer = argv[0]; in save_ps_args()
231 new_argv[i] = strdup(argv[i]); in save_ps_args()
247 argv = new_argv; in save_ps_args()
266 return argv; in save_ps_args()
278 return argv; in save_ps_args()
435 void cleanup_ps_args(char **argv) in cleanup_ps_args() argument
460 free(argv[i]); in cleanup_ps_args()
[all …]
H A Dphp_cli.c868 script_file = argv[php_optind]; in do_cli()
903 SG(request_info).argv = argv + php_optind - 1; in do_cli()
924 memset(argv[i], 0, strlen(argv[i])); in do_cli()
1139 int main(int argc, char *argv[]) in WinMain()
1145 char **argv = __argv; in WinMain() local
1149 char **argv_save = argv; in WinMain()
1167 argv = save_ps_args(argc, argv); in WinMain()
1246 php_cli_usage(argv[0]); in WinMain()
1249 php_cli_usage(argv[0]); in WinMain()
1342 argv = argv_save; in WinMain()
[all …]
H A Dgenerate_mime_type_map.php6 $source = count($argv) > 1 ? $argv[1] : 'https://cdn.jsdelivr.net/gh/jshttp/mime-db@v1.52.0/db.json…
/php-src/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)
11 $argv = $_SERVER['argv'];
14 echo ($i-1).": ".$argv[$i]."\n";
/php-src/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-src/ext/standard/tests/general_functions/
H A Dbug43293_1.phpt7 $argv = array(1, 2, 3);
9 var_dump($argv);
10 $argv = null;
/php-src/win32/build/
H A Ddeplister.c44 int main(int argc, char *argv[]) in main() argument
47 argv[1], NULL, argv[2], StatusRoutine); in main()
/php-src/ext/
H A Dext_skel.php154 function process_args($argv, $argc) { argument
168 $val = $argv[$i];
199 if (!isset($argv[$i + 1]) || ($argv[$i + 1][0] == '-' && $argv[$i + 1][1] == '-')) {
201 } else if ($opt == 'dir' && empty($argv[$i + 1])) {
205 … $options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]);
376 $options = process_args($argv, $argc);
/php-src/sapi/fpm/fpm/
H A Dfpm.c27 .argv = NULL,
44 enum fpm_init_return_status fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, … in fpm_init() argument
47 fpm_globals.argv = argv; in fpm_init()
/php-src/sapi/fuzzer/
H A Dgenerate_execute_corpus.php6 $corpusDir = $argv[1];
11 $testDirs = array_slice($argv, 2);
/php-src/sapi/embed/
H A Dphp_embed.c163 EMBED_SAPI_API int php_embed_init(int argc, char **argv) in php_embed_init() argument
222 if (argv) { in php_embed_init()
223 php_embed_module.executable_location = argv[0]; in php_embed_init()
237 SG(request_info).argv=argv; in php_embed_init()

Completed in 30 milliseconds

12345