/PHP-8.1/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)) 56 uint32_t argc; member 81 HashTable **attributes, zend_string *name, uint32_t argc, 86 …ne zend_attribute *zend_add_class_attribute(zend_class_entry *ce, zend_string *name, uint32_t argc) in END_EXTERN_C() 89 return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0); in END_EXTERN_C() 92 … zend_attribute *zend_add_function_attribute(zend_function *func, zend_string *name, uint32_t argc) in zend_add_function_attribute() argument 95 return zend_add_attribute(&func->common.attributes, name, argc, flags, 0, 0); in zend_add_function_attribute() 101 return zend_add_attribute(&func->common.attributes, name, argc, flags, offset + 1, 0); in zend_add_parameter_attribute() 107 return zend_add_attribute(&info->attributes, name, argc, flags, 0, 0); in zend_add_property_attribute() [all …]
|
H A D | zend_attributes.c | 34 if (attr->argc > 0) { in validate_attribute() 130 if (i >= attr->argc) { in zend_get_attribute_value() 195 for (uint32_t i = 0; i < attr->argc; i++) { in attr_free() 209 …e *zend_add_attribute(HashTable **attributes, zend_string *name, uint32_t argc, uint32_t flags, ui… in zend_add_attribute() argument 217 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute() 229 attr->argc = argc; in zend_add_attribute() 232 for (uint32_t i = 0; i < argc; i++) { in zend_add_attribute()
|
/PHP-8.1/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.1/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.1/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.1/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 …]
|
H A D | rand.c | 48 int argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 50 if (argc == 0) { in PHP_FUNCTION()
|
/PHP-8.1/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.1/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.1/sapi/fuzzer/ |
H A D | generate_execute_corpus.php | 3 if ($argc >= 2) { 8 if ($argc >= 3) {
|
/PHP-8.1/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() 222 new_argv = (char **) malloc((argc + 1) * sizeof(char *)); in save_ps_args() 225 for (i = 0; i < argc; i++) in save_ps_args() 233 new_argv[argc] = NULL; in save_ps_args()
|
/PHP-8.1/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.1/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() 465 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback() 533 zend_long argc = -1; in PHP_METHOD() local 543 Z_PARAM_LONG(argc) in PHP_METHOD() 561 func->argc = argc; in PHP_METHOD() 600 zend_long argc = -1; in PHP_METHOD() local 610 Z_PARAM_LONG(argc) in PHP_METHOD() [all …]
|
/PHP-8.1/sapi/phpdbg/ |
H A D | create-test.php | 32 if (isset($argc) && $argc > 1) { 34 for ($i = 1; $i < $argc; $i++) {
|
/PHP-8.1/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)
|