Home
last modified time | relevance | path

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

123456

/PHP-8.1/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()
100 if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) { 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()
179 if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { in php_getopt()
[all …]
/PHP-8.1/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-8.1/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-8.1/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-8.1/
H A Drun-tests.php379 if (!isset($argc, $argv) || !$argc) {
380 $argv = [__FILE__];
385 $argv = array_merge($argv, explode(' ', getenv('TEST_PHP_ARGS')));
386 $argc = count($argv);
391 $switch = substr($argv[$i], 1, 1);
464 $conf_passed = $argv[++$i];
514 $php = $argv[++$i];
529 $output_file = $argv[++$i];
559 $temp_source = $argv[++$i];
604 $switch = $argv[$i];
[all …]
/PHP-8.1/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()
184 ps_buffer = argv[0]; in save_ps_args()
227 new_argv[i] = strdup(argv[i]); in save_ps_args()
243 argv = new_argv; in save_ps_args()
262 return argv; in save_ps_args()
274 return argv; in save_ps_args()
432 void cleanup_ps_args(char **argv) in cleanup_ps_args() argument
457 free(argv[i]); in cleanup_ps_args()
[all …]
H A Dgenerate_mime_type_map.php6 $source = count($argv) > 1 ? $argv[1] : 'https://cdn.jsdelivr.net/gh/jshttp/mime-db@v1.45.0/db.json…
H A Dphp_cli.c894 script_file=argv[php_optind]; in do_cli()
925 arg_excp = argv+php_optind-1; in do_cli()
929 SG(request_info).argv=argv+php_optind-1; in do_cli()
949 memset(argv[i], 0, strlen(argv[i])); in do_cli()
1165 char **argv = __argv; in WinMain() local
1169 char **argv_save = argv; in WinMain()
1188 argv = save_ps_args(argc, argv); in WinMain()
1292 php_cli_usage(argv[0]); in WinMain()
1295 php_cli_usage(argv[0]); in WinMain()
1398 argv = argv_save; in WinMain()
[all …]
H A Dps_title.h26 extern char** save_ps_args(int argc, char** argv);
36 extern void cleanup_ps_args(char **argv);
/PHP-8.1/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-8.1/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-8.1/ext/standard/tests/general_functions/
H A Dbug43293_1.phpt7 $argv = array(1, 2, 3);
9 var_dump($argv);
10 $argv = null;
/PHP-8.1/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-8.1/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-8.1/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-8.1/sapi/embed/
H A Dphp_embed.c166 EMBED_SAPI_API int php_embed_init(int argc, char **argv) in php_embed_init() argument
226 if (argv) { in php_embed_init()
227 php_embed_module.executable_location = argv[0]; in php_embed_init()
241 SG(request_info).argv=argv; in php_embed_init()

Completed in 34 milliseconds

123456