/PHP-7.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()
|
H A D | gd2copypal.c | 12 main (int argc, char **argv) in main() argument 17 if (argc != 3) in main()
|
H A D | gd2time.c | 13 main (int argc, char **argv) in main() argument 22 if (argc != 7) in main()
|
H A D | gdparttopng.c | 11 main (int argc, char **argv) in main() argument 17 if (argc != 7) in main()
|
H A D | testac.c | 17 main (int argc, char *argv[]) in main() argument 29 if (argc != 2) in main()
|
/PHP-7.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-7.4/main/ |
H A D | getopt.c | 30 static int php_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err)… in php_opt_error() argument 57 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *opt… in php_getopt() argument 72 if (*optind >= argc) { in php_getopt() 113 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt() 131 return (php_opt_error(argc, argv, *optind-1, optchr, OPTERRCOLON, show_err)); in php_getopt() 149 return(php_opt_error(argc, argv, errind, errchr, OPTERRNF, show_err)); in php_getopt() 161 if (*optind == argc) { in php_getopt() 164 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
|
H A D | php_variables.c | 625 zval arr, argc, tmp; in php_build_argv() local 629 if (!(SG(request_info).argc || track_vars_array)) { in php_build_argv() 636 if (SG(request_info).argc) { /* are we in cli sapi? */ in php_build_argv() 638 for (i = 0; i < SG(request_info).argc; i++) { in php_build_argv() 667 if (SG(request_info).argc) { in php_build_argv() 668 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv() 670 ZVAL_LONG(&argc, count); in php_build_argv() 673 if (SG(request_info).argc) { in php_build_argv() 676 zend_hash_update(&EG(symbol_table), ZSTR_KNOWN(ZEND_STR_ARGC), &argc); in php_build_argv() 855 if (SG(request_info).argc) { in php_auto_globals_create_server() [all …]
|
/PHP-7.4/ext/gd/ |
H A D | gd_ctx.c | 88 int argc = ZEND_NUM_ARGS(); in _php_image_output_ctx() local 101 …if (zend_parse_parameters(argc, "rp!|ll", &imgind, &file, &file_len, &quality, &basefilter) == FAI… in _php_image_output_ctx() 106 if (zend_parse_parameters(argc, "r|z!b", &imgind, &to_zval, &compressed) == FAILURE) { in _php_image_output_ctx() 117 if (zend_parse_parameters(argc, "r|z!ll", &imgind, &to_zval, &quality, &basefilter) == FAILURE) { in _php_image_output_ctx() 126 if (image_type != PHP_GDIMG_TYPE_BMP && argc >= 3) { in _php_image_output_ctx() 128 if (argc == 4) { in _php_image_output_ctx() 133 if (argc > 1 && to_zval != NULL) { in _php_image_output_ctx() 154 } else if (argc > 1 && file != NULL) { in _php_image_output_ctx() 193 if (argc < 3) { in _php_image_output_ctx()
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm.c | 26 .argc = 0, 44 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a… in fpm_init() argument 46 fpm_globals.argc = argc; in fpm_init()
|
H A D | fpm.h | 38 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a… 42 int argc; member
|
/PHP-7.4/ext/standard/ |
H A D | formatted_print.c | 527 if (argnum >= argc) { in php_formatted_print() 660 *argc = n; in php_formatted_print_get_array() 671 int argc; in PHP_FUNCTION() local 675 Z_PARAM_VARIADIC('*', args, argc) in PHP_FUNCTION() 692 int argc; in PHP_FUNCTION() local 717 int argc; in PHP_FUNCTION() local 721 Z_PARAM_VARIADIC('*', args, argc) in PHP_FUNCTION() 741 int argc; in PHP_FUNCTION() local 767 int argc; in PHP_FUNCTION() local 777 Z_PARAM_VARIADIC('*', args, argc) in PHP_FUNCTION() [all …]
|
H A D | rand.c | 53 int argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 55 if (argc == 0) { in PHP_FUNCTION()
|
/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 147 save_argc = argc; in save_ps_args() 163 for (i = 0; (non_contiguous_area == 0) && (i < argc); i++) in save_ps_args() 221 new_argv = (char **) malloc((argc + 1) * sizeof(char *)); in save_ps_args() 224 for (i = 0; i < argc; i++) in save_ps_args() 232 new_argv[argc] = NULL; in save_ps_args()
|
H A D | php_cli.c | 616 static int do_cli(int argc, char **argv) /* {{{ */ in do_cli() argument 875 argc > php_optind && behavior!=PHP_MODE_CLI_DIRECT && in do_cli() 892 if (argc > php_optind in do_cli() 922 SG(request_info).argc=argc-php_optind+1; in do_cli() 947 for (i = 1; i < argc; i++) { in do_cli() 1155 int main(int argc, char *argv[]) in WinMain() 1160 int argc = __argc; in WinMain() local 1184 argv = save_ps_args(argc, argv); in WinMain() 1360 exit_status = do_cli(argc, argv); in WinMain() 1363 exit_status = do_cli_server(argc, argv); in WinMain() [all …]
|
/PHP-7.4/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 111 func->argc, in pdo_sqlite_cleanup_callbacks() 320 int argc, sqlite3_value **argv, sqlite3_context *context, in do_callback() argument 334 fake_argc = argc + is_agg; in do_callback() 361 for (i = 0; i < argc; i++) { in do_callback() 459 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback() 526 zend_long argc = -1; in PHP_METHOD() local 536 Z_PARAM_LONG(argc) in PHP_METHOD() 561 func->argc = argc; in PHP_METHOD() 599 zend_long argc = -1; in PHP_METHOD() local 609 Z_PARAM_LONG(argc) in PHP_METHOD() [all …]
|
/PHP-7.4/sapi/phpdbg/ |
H A D | create-test.php | 34 if (isset($argc) && $argc > 1) { 36 for ($i = 1; $i < $argc; $i++) {
|
/PHP-7.4/ext/phar/phar/ |
H A D | clicommand.inc | 19 protected $argc; 25 function __construct($argc, array $argv) 27 $this->argc = $argc; 32 if ($argc < 2) { 44 while (++$i < $argc) { 48 if (++$i >= $argc) { 51 $this->args[$arg]['val'] = $this->checkArgTyp($arg, $i, $argc, $argv); 62 if ($i >= $argc) { 68 while($i < $argc) { 72 } else if ($i < $argc) { [all …]
|
/PHP-7.4/ext/ |
H A D | ext_skel.php | 161 function process_args($argv, $argc) { argument 173 for($i = 1; $i < $argc; ++$i) 382 if ($argc < 1) { 387 $options = process_args($argv, $argc);
|
/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 206 SG(request_info).argc=argc; in php_embed_init()
|