/PHP-8.2/Zend/ |
H A D | zend_attributes.h | 37 #define ZEND_ATTRIBUTE_SIZE(argc) \ argument 38 (sizeof(zend_attribute) + sizeof(zend_attribute_arg) * (argc) - sizeof(zend_attribute_arg)) 59 uint32_t argc; member 85 HashTable **attributes, zend_string *name, uint32_t argc, 92 …ne zend_attribute *zend_add_class_attribute(zend_class_entry *ce, zend_string *name, uint32_t argc) in END_EXTERN_C() 95 return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0); in END_EXTERN_C() 98 … zend_attribute *zend_add_function_attribute(zend_function *func, zend_string *name, uint32_t argc) in zend_add_function_attribute() argument 101 return zend_add_attribute(&func->common.attributes, name, argc, flags, 0, 0); in zend_add_function_attribute() 107 return zend_add_attribute(&func->common.attributes, name, argc, flags, offset + 1, 0); in zend_add_parameter_attribute() 113 return zend_add_attribute(&info->attributes, name, argc, flags, 0, 0); in zend_add_property_attribute() [all …]
|
H A D | zend_attributes.c | 44 if (attr->argc > 0) { in zend_attribute_attribute_get_flags() 211 if (i >= attr->argc) { in zend_get_attribute_value() 276 for (uint32_t i = 0; i < attr->argc; i++) { in attr_free() 290 …e *zend_add_attribute(HashTable **attributes, zend_string *name, uint32_t argc, uint32_t flags, ui… in zend_add_attribute() argument 298 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute() 310 attr->argc = argc; in zend_add_attribute() 313 for (uint32_t i = 0; i < argc; i++) { in zend_add_attribute()
|
/PHP-8.2/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-8.2/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-8.2/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-8.2/ext/standard/ |
H A D | formatted_print.c | 522 if (width_argnum >= argc) { in php_formatted_print() 566 if (prec_argnum >= argc) { in php_formatted_print() 608 if (argnum >= argc) { in php_formatted_print() 752 *argc = n; in php_formatted_print_get_array() 764 int argc; in PHP_FUNCTION() local 768 Z_PARAM_VARIADIC('*', args, argc) in PHP_FUNCTION() 787 int argc; in PHP_FUNCTION() local 813 int argc; in PHP_FUNCTION() local 839 int argc; in PHP_FUNCTION() local 866 int argc; in PHP_FUNCTION() local [all …]
|
/PHP-8.2/ext/dom/ |
H A D | documentfragment.c | 139 int argc = 0; in PHP_METHOD() local 144 if (zend_parse_parameters(ZEND_NUM_ARGS(), "*", &args, &argc) == FAILURE) { in PHP_METHOD() 151 dom_parent_node_append(intern, args, argc); in PHP_METHOD() 160 int argc = 0; in PHP_METHOD() local 165 if (zend_parse_parameters(ZEND_NUM_ARGS(), "*", &args, &argc) == FAILURE) { in PHP_METHOD() 172 dom_parent_node_prepend(intern, args, argc); in PHP_METHOD()
|
H A D | characterdata.c | 367 int argc = 0; in PHP_METHOD() local 372 if (zend_parse_parameters(ZEND_NUM_ARGS(), "*", &args, &argc) == FAILURE) { in PHP_METHOD() 379 dom_parent_node_after(intern, args, argc); in PHP_METHOD() 384 int argc = 0; in PHP_METHOD() local 389 if (zend_parse_parameters(ZEND_NUM_ARGS(), "*", &args, &argc) == FAILURE) { in PHP_METHOD() 396 dom_parent_node_before(intern, args, argc); in PHP_METHOD() 401 int argc = 0; in PHP_METHOD() local 406 if (zend_parse_parameters(ZEND_NUM_ARGS(), "*", &args, &argc) == FAILURE) { in PHP_METHOD() 413 dom_child_replace_with(intern, args, argc); in PHP_METHOD()
|
/PHP-8.2/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-8.2/sapi/fuzzer/ |
H A D | generate_execute_corpus.php | 5 if ($argc >= 2) { 10 if ($argc >= 3) {
|
/PHP-8.2/sapi/cli/ |
H A D | ps_title.c | 146 char** save_ps_args(int argc, char** argv) in save_ps_args() argument 148 save_argc = argc; in save_ps_args() 164 for (i = 0; is_contiguous_area && (i < argc); i++) in save_ps_args() 225 new_argv = (char **) malloc((argc + 1) * sizeof(char *)); in save_ps_args() 228 for (i = 0; i < argc; i++) in save_ps_args() 236 new_argv[argc] = NULL; in save_ps_args()
|
H A D | php_cli.c | 601 static int do_cli(int argc, char **argv) /* {{{ */ in do_cli() argument 868 argc > php_optind && behavior!=PHP_MODE_CLI_DIRECT && in do_cli() 887 if (argc > php_optind in do_cli() 923 SG(request_info).argc=argc-php_optind+1; in do_cli() 947 for (i = 1; i < argc; i++) { in do_cli() 1160 int main(int argc, char *argv[]) in WinMain() 1165 int argc = __argc; in WinMain() local 1188 argv = save_ps_args(argc, argv); in WinMain() 1334 exit_status = do_cli(argc, argv); in WinMain() 1337 exit_status = do_cli_server(argc, argv); in WinMain() [all …]
|
/PHP-8.2/ext/spl/ |
H A D | spl_engine.h | 39 zend_class_entry *pce, zval *retval, uint32_t argc, zval *argv) in spl_instantiate_arg_n() argument 42 zend_call_known_instance_method(pce->constructor, Z_OBJ_P(retval), NULL, argc, argv); in spl_instantiate_arg_n()
|
/PHP-8.2/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 108 func->argc, in pdo_sqlite_cleanup_callbacks() 326 int argc, sqlite3_value **argv, sqlite3_context *context, in do_callback() argument 340 fake_argc = argc + is_agg; in do_callback() 367 for (i = 0; i < argc; i++) { in do_callback() 464 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback() 532 zend_long argc = -1; in PHP_METHOD() local 542 Z_PARAM_LONG(argc) in PHP_METHOD() 560 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-8.2/sapi/phpdbg/ |
H A D | create-test.php | 32 if (isset($argc) && $argc > 1) { 34 for ($i = 1; $i < $argc; $i++) {
|
/PHP-8.2/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)
|