/PHP-5.5/sapi/isapi/stresstest/ |
H A D | getopt.c | 41 ap_optopt = argv[oint][optchr]; in ap_optiserr() 54 if (!dash && (argv[ap_optind][0] != '-')) in ap_getopt() 56 if (!dash && (argv[ap_optind][0] == '-') && !argv[ap_optind][1]) in ap_getopt() 64 if ((argv[ap_optind][0] == '-') && (argv[ap_optind][1] == '-')) in ap_getopt() 72 assert((argv[ap_optind][0] == '-') && argv[ap_optind][1]); in ap_getopt() 79 if (argv[ap_optind][optchr] == ':') in ap_getopt() 90 if (!argv[ap_optind][optchr+1]) in ap_getopt() 104 if(!argv[ap_optind][2]) { in ap_getopt() 108 ap_optarg = argv[ap_optind++]; in ap_getopt() 119 if (!argv[ap_optind][optchr+1]) in ap_getopt() [all …]
|
/PHP-5.5/sapi/milter/ |
H A D | getopt.c | 52 if (!dash && (argv[ap_php_optind][0] != '-')) in ap_php_getopt() 54 if (!dash && (argv[ap_php_optind][0] == '-') && !argv[ap_php_optind][1]) in ap_php_getopt() 62 if ((argv[ap_php_optind][0] == '-') && (argv[ap_php_optind][1] == '-')) in ap_php_getopt() 70 assert((argv[ap_php_optind][0] == '-') && argv[ap_php_optind][1]); in ap_php_getopt() 77 if (argv[ap_php_optind][optchr] == ':') in ap_php_getopt() 88 if (!argv[ap_php_optind][optchr+1]) in ap_php_getopt() 102 if(!argv[ap_php_optind][2]) { in ap_php_getopt() 106 ap_php_optarg = argv[ap_php_optind++]; in ap_php_getopt() 110 ap_php_optarg = &argv[ap_php_optind][2]; in ap_php_getopt() 117 if (!argv[ap_php_optind][optchr+1]) in ap_php_getopt() [all …]
|
/PHP-5.5/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-5.5/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-5.5/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-5.5/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-5.5/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-5.5/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-5.5/ext/interbase/ |
H A D | php_ibase_udf.c | 209 if (argv[i]->dsc_flags & DSC_null) { in call_php() 214 switch (argv[i]->dsc_dtype) { in call_php() 221 ZVAL_STRING(argp[i], (char*)argv[i]->dsc_address,0); in call_php() 225 ZVAL_STRINGL(argp[i], (char*)argv[i]->dsc_address, argv[i]->dsc_length,0); in call_php() 234 if (argv[i]->dsc_scale == 0) { in call_php() 235 ZVAL_LONG(argp[i], *(short*)argv[i]->dsc_address); in call_php() 238 ((double)*(short*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php() 243 if (argv[i]->dsc_scale == 0) { in call_php() 247 ((double)*(ISC_LONG*)argv[i]->dsc_address)/scales[-argv[i]->dsc_scale]); in call_php() 252 l = *(ISC_INT64*)argv[i]->dsc_address; in call_php() [all …]
|
/PHP-5.5/sapi/cli/ |
H A D | ps_title.c | 141 char** save_ps_args(int argc, char** argv) in save_ps_args() argument 144 save_argv = argv; in save_ps_args() 163 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args() 179 ps_buffer = argv[0]; in save_ps_args() 222 new_argv[i] = strdup(argv[i]); in save_ps_args() 236 argv = new_argv; in save_ps_args() 255 return argv; in save_ps_args() 267 return argv; in save_ps_args() 404 void cleanup_ps_args(char **argv) in cleanup_ps_args() argument 429 free(argv[i]); in cleanup_ps_args() [all …]
|
/PHP-5.5/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-5.5/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-5.5/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-5.5/ext/ereg/regex/ |
H A D | split.c | 151 main(argc, argv) in main() argument 153 char *argv[]; 161 for (n = atoi(argv[3]); n > 0; n--) { 162 (void) strcpy(buf, argv[1]); 165 for (n = atoi(argv[3]); n > 0; n--) { 166 (void) strcpy(buf, argv[1]); 167 (void) split(buf, fields, MNF, argv[2]); 170 dosplit(argv[1], argv[2]); 174 dosplit(buf, argv[1]);
|