/PHP-7.1/main/ |
H A D | getopt.c | 77 if ((argv[*optind][0] != '-')) { in php_getopt() 80 if (!argv[*optind][1]) in php_getopt() 90 if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { in php_getopt() 95 if (argv[*optind][2] == '\0') { in php_getopt() 103 if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) { in php_getopt() 129 if (argv[*optind][optchr] == ':') { in php_getopt() 143 if (!argv[*optind][optchr+1]) { in php_getopt() 160 if (!argv[*optind][arg_start]) { in php_getopt() 169 *optarg = argv[(*optind)++]; in php_getopt() 182 if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { in php_getopt() [all …]
|
/PHP-7.1/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()
|
/PHP-7.1/scripts/dev/generate-phpt/src/setup/ |
H A D | gtCommandLineOptions.php | 42 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-7.1/ext/spl/examples/ |
H A D | dba_array.php | 33 $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 D | directorytree.php | 29 $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 D | dba_dump.php | 32 $db = new DbaReader($argv[1], $argv[2]); 35 $db = new KeyFilter($db, $argv[3]);
|
H A D | phar_from_dir.php | 31 $phar = new Phar($argv[1], 0, 'newphar'); 33 $dir = new RecursiveDirectoryIterator($argv[2]); 37 $dir = new RegexIterator($dir, '/'.$argv[3].'/');
|
/PHP-7.1/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.1/ext/mbstring/libmbfl/tests/ |
H A D | strcut.c | 25 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 D | conv_encoding.c | 24 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 D | strwidth.c | 13 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 D | conv_kana.c | 24 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.1/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.1/ext/interbase/ |
H A D | php_ibase_udf.c | 205 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.1/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 …]
|
/PHP-7.1/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.1/TSRM/ |
H A D | tsrm_nw.c | 55 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-7.1/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 …]
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | bug43293_1.phpt | 7 $argv = array(1, 2, 3); 9 var_dump($argv); 10 $argv = null;
|