/php-src/Zend/ |
H A D | zend_attributes.h | 39 #define ZEND_ATTRIBUTE_SIZE(argc) \ argument 40 (sizeof(zend_attribute) + sizeof(zend_attribute_arg) * (argc) - sizeof(zend_attribute_arg)) 63 uint32_t argc; member 90 HashTable **attributes, zend_string *name, uint32_t argc, 97 …ne zend_attribute *zend_add_class_attribute(zend_class_entry *ce, zend_string *name, uint32_t argc) in END_EXTERN_C() 100 return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0); in END_EXTERN_C() 103 … zend_attribute *zend_add_function_attribute(zend_function *func, zend_string *name, uint32_t argc) in zend_add_function_attribute() argument 106 return zend_add_attribute(&func->common.attributes, name, argc, flags, 0, 0); in zend_add_function_attribute() 112 return zend_add_attribute(&func->common.attributes, name, argc, flags, offset + 1, 0); in zend_add_parameter_attribute() 118 return zend_add_attribute(&info->attributes, name, argc, flags, 0, 0); in zend_add_property_attribute() [all …]
|
H A D | zend_attributes.c | 42 if (attr->argc > 0) { in zend_attribute_attribute_get_flags() 248 if (i >= attr->argc) { in zend_get_attribute_value() 308 uint32_t argc = 0; in zend_get_attribute_object() local 309 if (attribute_data->argc) { in zend_get_attribute_object() 310 args = emalloc(attribute_data->argc * sizeof(zval)); in zend_get_attribute_object() 312 for (uint32_t i = 0; i < attribute_data->argc; i++) { in zend_get_attribute_object() 325 argc++; in zend_get_attribute_object() 333 for (uint32_t i = 0; i < argc; i++) { in zend_get_attribute_object() 400 for (uint32_t i = 0; i < attr->argc; i++) { in attr_free() 434 attr->argc = argc; in zend_add_attribute() [all …]
|
/php-src/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()
|
/php-src/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) 10 $argc = $_SERVER['argc']; 13 for ($i=1; $i<$argc; $i++) {
|
/php-src/main/ |
H A D | getopt.c | 28 static int php_opt_error(int argc, char * const *argv, int optint, int optchr, int err, int show_er… in php_opt_error() argument 55 PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *opt… in php_getopt() argument 70 if (*optind >= argc) { in php_getopt() 111 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt() 129 return (php_opt_error(argc, argv, *optind-1, optchr, OPTERRCOLON, show_err)); in php_getopt() 147 return(php_opt_error(argc, argv, errind, errchr, OPTERRNF, show_err)); in php_getopt() 159 if (*optind == argc) { in php_getopt() 162 return(php_opt_error(argc, argv, *optind-1, optchr, OPTERRARG, show_err)); in php_getopt()
|
/php-src/ext/standard/ |
H A D | formatted_print.c | 519 if (width_argnum >= argc) { in php_formatted_print() 563 if (prec_argnum >= argc) { in php_formatted_print() 605 if (argnum >= argc) { in php_formatted_print() 749 *argc = n; in php_formatted_print_get_array() 761 int argc; in PHP_FUNCTION() local 765 Z_PARAM_VARIADIC('*', args, argc) in PHP_FUNCTION() 784 int argc; in PHP_FUNCTION() local 810 int argc; in PHP_FUNCTION() local 836 int argc; in PHP_FUNCTION() local 863 int argc; in PHP_FUNCTION() local [all …]
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm.c | 26 .argc = 0, 44 enum fpm_init_return_status fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, … in fpm_init() argument 46 fpm_globals.argc = argc; in fpm_init()
|
H A D | fpm.h | 44 enum fpm_init_return_status fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, … 48 int argc; member
|
/php-src/sapi/fuzzer/ |
H A D | generate_execute_corpus.php | 5 if ($argc >= 2) { 10 if ($argc >= 3) {
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 108 func->argc, in pdo_sqlite_cleanup_callbacks() 334 fake_argc = argc + is_agg; in do_callback() 354 for (i = 0; i < argc; i++) { in do_callback() 446 do_callback(&func->step, argc, argv, context, 1); in php_sqlite3_func_step_callback() 491 do_callback(&func->func, argc, argv, context, 0); in php_sqlite3_func_callback() 501 zend_long argc = -1; in pdo_sqlite_create_function_internal() local 511 Z_PARAM_LONG(argc) in pdo_sqlite_create_function_internal() 528 func->argc = argc; in pdo_sqlite_create_function_internal() 560 zend_long argc = -1; in pdo_sqlite_create_aggregate_internal() local 570 Z_PARAM_LONG(argc) in pdo_sqlite_create_aggregate_internal() [all …]
|
/php-src/sapi/cli/ |
H A D | ps_title.c | 147 char** save_ps_args(int argc, char** argv) in save_ps_args() argument 149 save_argc = argc; in save_ps_args() 165 for (i = 0; is_contiguous_area && (i < argc); i++) in save_ps_args() 226 new_argv = (char **) malloc((argc + 1) * sizeof(char *)); in save_ps_args() 229 for (i = 0; i < argc; i++) in save_ps_args() 237 new_argv[argc] = NULL; in save_ps_args()
|
H A D | php_cli.c | 591 static int do_cli(int argc, char **argv) /* {{{ */ in do_cli() argument 862 if (argc > php_optind in do_cli() 898 SG(request_info).argc = argc - php_optind + 1; in do_cli() 923 for (i = 1; i < argc; i++) { in do_cli() 1139 int main(int argc, char *argv[]) in WinMain() 1144 int argc = __argc; in WinMain() local 1167 argv = save_ps_args(argc, argv); in WinMain() 1298 PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc) in WinMain() 1313 exit_status = do_cli(argc, argv); in WinMain() 1316 exit_status = do_cli_server(argc, argv); in WinMain() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | create-test.php | 32 if (isset($argc) && $argc > 1) { 34 for ($i = 1; $i < $argc; $i++) {
|
/php-src/sapi/embed/ |
H A D | README.md | 14 int main(int argc, char **argv) 20 PHP_EMBED_START_BLOCK(argc, argv) 65 int main(int argc, char **argv) 67 PHP_EMBED_START_BLOCK(argc, argv) 102 int main(int argc, char **argv) 104 PHP_EMBED_START_BLOCK(argc, argv) 135 int main(int argc, char **argv) 139 PHP_EMBED_START_BLOCK(argc, argv)
|
H A D | php_embed.c | 163 EMBED_SAPI_API int php_embed_init(int argc, char **argv) in php_embed_init() argument 236 SG(request_info).argc=argc; in php_embed_init()
|
/php-src/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-src/ext/ |
H A D | ext_skel.php | 154 function process_args($argv, $argc) { argument 166 for($i = 1; $i < $argc; ++$i) 371 if ($argc < 1) { 376 $options = process_args($argv, $argc);
|