/PHP-7.4/main/ |
H A D | getopt.c | 76 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.4/ext/gd/libgd/ |
H A D | webpng.c | 20 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 D | gd2time.c | 13 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 D | gdparttopng.c | 11 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 D | pngtogd2.c | 12 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 D | gd2copypal.c | 12 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 D | gdtopng.c | 10 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 D | pngtogd.c | 11 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 D | gd2topng.c | 11 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-7.4/sapi/phpdbg/ |
H A D | .phpdbginit | 51 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 D | create-test.php | 37 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.4/pear/ |
H A D | fetch.php | 3 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.4/sapi/cli/ |
H A D | ps_title.c | 145 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 …]
|
H A D | php_cli.c | 898 script_file=argv[php_optind]; in do_cli() 923 arg_excp = argv+php_optind-1; in do_cli() 927 SG(request_info).argv=argv+php_optind-1; in do_cli() 948 memset(argv[i], 0, strlen(argv[i])); in do_cli() 1161 char **argv = __argv; in WinMain() local 1165 char **argv_save = argv; in WinMain() 1184 argv = save_ps_args(argc, argv); in WinMain() 1285 php_cli_usage(argv[0]); in WinMain() 1288 php_cli_usage(argv[0]); in WinMain() 1391 argv = argv_save; in WinMain() [all …]
|
H A D | ps_title.h | 28 extern char** save_ps_args(int argc, char** argv); 38 extern void cleanup_ps_args(char **argv);
|
/PHP-7.4/tests/basic/ |
H A D | 011.phpt | 2 Testing $argc and $argv handling (GET) 10 $argv = $_SERVER['argv']; 13 echo "$i: ".$argv[$i]."\n";
|
H A D | 012.phpt | 2 Testing $argc and $argv handling (cli) 13 $argv = $_SERVER['argv']; 16 echo ($i-1).": ".$argv[$i]."\n";
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | bug43293_1.phpt | 7 $argv = array(1, 2, 3); 9 var_dump($argv); 10 $argv = null;
|
/PHP-7.4/ext/phar/phar/ |
H A D | clicommand.inc | 20 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 …]
|
H A D | phar.php | 30 echo "$argv[0] requires PHP extension $ext.\n"; 52 new PharCommand($argc, $argv);
|
/PHP-7.4/win32/build/ |
H A D | deplister.c | 46 int main(int argc, char *argv[]) in main() argument 49 argv[1], NULL, argv[2], StatusRoutine); in main()
|
/PHP-7.4/ext/ |
H A D | ext_skel.php | 161 function process_args($argv, $argc) { argument 175 $val = $argv[$i]; 206 if (!isset($argv[$i + 1]) || ($argv[$i + 1][0] == '-' && $argv[$i + 1][1] == '-')) { 208 } else if ($opt == 'dir' && empty($argv[$i + 1])) { 212 … $options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]); 387 $options = process_args($argv, $argc);
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm.c | 27 .argv = NULL, 44 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a… in fpm_init() argument 47 fpm_globals.argv = argv; in fpm_init()
|
/PHP-7.4/sapi/phpdbg/tests/ |
H A D | normal_exit.phpt | 13 (function($argv) { 15 })($argv);
|
/PHP-7.4/sapi/embed/ |
H A D | php_embed.c | 158 EMBED_SAPI_API int php_embed_init(int argc, char **argv) in php_embed_init() argument 194 if (argv) { in php_embed_init() 195 php_embed_module.executable_location = argv[0]; in php_embed_init() 207 SG(request_info).argv=argv; in php_embed_init()
|