/PHP-5.4/sapi/isapi/stresstest/ |
H A D | getopt.c | 19 ap_optiserr(int argc, char * const *argv, int oint, const char *optstr, in ap_optiserr() argument 45 int ap_getopt(int argc, char* const *argv, const char *optstr) in ap_getopt() argument 52 if (ap_optind >= argc) in ap_getopt() 83 return(ap_optiserr(argc, argv, ap_optind-1, optstr, optchr, OPTERRCOLON)); in ap_getopt() 97 return(ap_optiserr(argc, argv, errind, optstr, errchr, OPTERRNF)); in ap_getopt() 106 if (ap_optind == argc) in ap_getopt() 107 return(ap_optiserr(argc, argv, ap_optind-1, optstr, optchr, OPTERRARG)); in ap_getopt() 134 main (int argc, char **argv) in main() argument 144 while ((c = ap_getopt(argc, argv, "abo:")) != EOF) in main() 170 for ( ; ap_optind < argc; ap_optind++) in main()
|
/PHP-5.4/sapi/milter/ |
H A D | getopt.c | 18 ap_php_optiserr(int argc, char * const *argv, int oint, const char *optstr, in ap_php_optiserr() argument 43 int ap_php_getopt(int argc, char* const *argv, const char *optstr) in ap_php_getopt() argument 50 if (ap_php_optind >= argc) in ap_php_getopt() 81 return(ap_php_optiserr(argc, argv, ap_php_optind-1, optstr, optchr, OPTERRCOLON)); in ap_php_getopt() 95 return(ap_php_optiserr(argc, argv, errind, optstr, errchr, OPTERRNF)); in ap_php_getopt() 104 if (ap_php_optind == argc) in ap_php_getopt() 105 return(ap_php_optiserr(argc, argv, ap_php_optind-1, optstr, optchr, OPTERRARG)); in ap_php_getopt() 132 main (int argc, char **argv) in main() argument 142 while ((c = ap_php_getopt(argc, argv, "abo:")) != EOF) in main() 168 for ( ; ap_php_optind < argc; ap_php_optind++) in main()
|
/PHP-5.4/ext/gd/libgd/ |
H A D | webpng.c | 20 main (int argc, char **argv) in main() argument 38 if (argc < 2 || !strcmp (argv[1], "--help")) in main() 45 if (strcmp ("-", argv[argc - 1]) == 0) in main() 52 in = fopen (argv[argc - 1], "rb"); in main() 57 "Error: can't open file %s.\n", argv[argc - 1]); in main() 67 "Error: %s is not a valid PNG file.\n", argv[argc - 1]); in main() 71 for (i = 1; (i < (argc - 1)); i++) in main() 82 if (i == (argc - 2)) in main() 114 if (i == (argc - 2)) in main() 273 unlink (argv[argc - 1]); in main() [all …]
|
H A D | gdtopng.c | 10 main (int argc, char **argv) in main() argument 14 if (argc != 3) in main()
|
H A D | pngtogd.c | 11 main (int argc, char **argv) in main() argument 15 if (argc != 3) in main()
|
H A D | gd2topng.c | 11 main (int argc, char **argv) in main() argument 15 if (argc != 3) in main()
|
H A D | pngtogd2.c | 12 main (int argc, char **argv) in main() argument 18 if (argc != 5) in main()
|
/PHP-5.4/ext/spl/examples/ |
H A D | dba_array.php | 17 if ($argc < 4) { 32 if ($argc > 2) { 34 if ($dba && $argc > 3) { 35 if ($argc > 4) {
|
H A D | directorytree.php | 14 if ($argc < 2) { 29 $length = $argc > 3 ? $argv[3] : -1;
|
H A D | ini_groups.php | 17 if ($argc < 2) { 33 if ($argc>2) {
|
H A D | dba_dump.php | 17 if ($argc < 3) { 34 if ($argc>3) {
|
H A D | phar_from_dir.php | 16 if ($argc < 3) 35 if ($argc > 3)
|
/PHP-5.4/tests/basic/ |
H A D | 011.phpt | 2 Testing $argc and $argv handling (GET) 9 $argc = $_SERVER['argc']; 12 for ($i=0; $i<$argc; $i++) {
|
H A D | 012.phpt | 2 Testing $argc and $argv handling (cli) 12 $argc = $_SERVER['argc']; 15 for ($i=1; $i<$argc; $i++) {
|
/PHP-5.4/ext/mysqli/ |
H A D | mysqli_embedded.c | 39 int argc = 0; in PHP_FUNCTION() local 54 if ((argc = zend_hash_num_elements(HASH_OF(args)))) { in PHP_FUNCTION() 55 arguments = safe_emalloc(sizeof(char *), argc + 1, 0); in PHP_FUNCTION() 71 argc++; in PHP_FUNCTION() 98 rc = mysql_server_init(argc, arguments, groups); in PHP_FUNCTION() 100 if (argc) { in PHP_FUNCTION()
|
/PHP-5.4/main/ |
H A D | getopt.c | 31 static int php_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err)… in php_opt_error() argument 58 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *opt… in php_getopt() argument 65 if (*optind >= argc) { in php_getopt() 106 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt() 124 return (php_opt_error(argc, argv, *optind-1, optchr, OPTERRCOLON, show_err)); in php_getopt() 142 return(php_opt_error(argc, argv, errind, errchr, OPTERRNF, show_err)); in php_getopt() 154 if (*optind == argc) { in php_getopt() 157 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
|
H A D | php_variables.c | 455 zval *arr, *argc, *tmp; in php_build_argv() local 510 ALLOC_INIT_ZVAL(argc); in php_build_argv() 511 if (SG(request_info).argc) { in php_build_argv() 512 Z_LVAL_P(argc) = SG(request_info).argc; in php_build_argv() 514 Z_LVAL_P(argc) = count; in php_build_argv() 516 Z_TYPE_P(argc) = IS_LONG; in php_build_argv() 520 Z_ADDREF_P(argc); in php_build_argv() 526 Z_ADDREF_P(argc); in php_build_argv() 531 zval_ptr_dtor(&argc); in php_build_argv() 749 zval **argc, **argv; in php_auto_globals_create_server() local [all …]
|
/PHP-5.4/TSRM/ |
H A D | tsrm_nw.c | 59 int ptrLen = 0, argc = 0, i = 0, envCount = 0, err = 0; local 139 while (ptr && (argc < MAX_ARGS)) { 142 argv[argc] = (char*)malloc(ptrLen + 1); 143 if (!argv[argc]) { 148 for (i = 0; i < argc; i++) { 156 strcpy (argv[argc], ptr); 157 argc++; 163 envSpec.esArgc = argc; 218 for (i = 0; i < argc; i++) {
|
/PHP-5.4/ext/bcmath/ |
H A D | bcmath.c | 212 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 218 if (argc == 3) { in PHP_FUNCTION() 251 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 257 if (argc == 3) { in PHP_FUNCTION() 290 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 296 if (argc == 3) { in PHP_FUNCTION() 329 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 335 if (argc == 3) { in PHP_FUNCTION() 459 if (argc == 3) { in PHP_FUNCTION() 498 if (argc == 2) { in PHP_FUNCTION() [all …]
|
/PHP-5.4/ext/standard/ |
H A D | rand.c | 294 int argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 296 if (argc != 0 && zend_parse_parameters(argc TSRMLS_CC, "ll", &min, &max) == FAILURE) in PHP_FUNCTION() 300 if (argc == 2) { in PHP_FUNCTION() 315 int argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 317 if (argc != 0) { in PHP_FUNCTION() 318 if (zend_parse_parameters(argc TSRMLS_CC, "ll", &min, &max) == FAILURE) { in PHP_FUNCTION() 339 if (argc == 2) { in PHP_FUNCTION()
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm.c | 28 .argc = 0, 45 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.argc = argc; in fpm_init()
|
H A D | fpm.h | 40 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a… 44 int argc; member
|
/PHP-5.4/ext/ereg/regex/ |
H A D | split.c | 151 main(argc, argv) in main() argument 152 int argc; in main() 160 if (argc > 4) 164 else if (argc > 3) 169 else if (argc > 2) 171 else if (argc > 1)
|
/PHP-5.4/ext/gd/ |
H A D | gd_ctx.c | 84 int argc = ZEND_NUM_ARGS(); in _php_image_output_ctx() local 113 if (argc >= 3) { in _php_image_output_ctx() 115 if (argc == 4) { in _php_image_output_ctx() 120 if (argc > 1 && to_zval != NULL) { in _php_image_output_ctx() 180 if (argc < 3) { in _php_image_output_ctx()
|
/PHP-5.4/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 114 func->argc, in pdo_sqlite_cleanup_callbacks() 312 int argc, sqlite3_value **argv, sqlite3_context *context, in do_callback() argument 326 fake_argc = argc + is_agg; in do_callback() 356 for (i = 0; i < argc; i++) { in do_callback() 540 long argc = -1; in PHP_METHOD() local 547 &func_name, &func_name_len, &callback, &argc)) { in PHP_METHOD() 565 ret = sqlite3_create_function(H->db, func_name, argc, SQLITE_UTF8, in PHP_METHOD() 573 func->argc = argc; in PHP_METHOD() 611 long argc = -1; in PHP_METHOD() local 642 ret = sqlite3_create_function(H->db, func_name, argc, SQLITE_UTF8, in PHP_METHOD() [all …]
|