Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 131) sorted by relevance

123456

/PHP-8.0/Zend/
H A Dzend_attributes.h37 #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 Dzend_attributes.c33 if (attr->argc > 0) { in validate_attribute()
124 if (i >= attr->argc) { in zend_get_attribute_value()
189 for (uint32_t i = 0; i < attr->argc; i++) { in attr_free()
203 …e *zend_add_attribute(HashTable **attributes, zend_string *name, uint32_t argc, uint32_t flags, ui… in zend_add_attribute() argument
211 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute()
223 attr->argc = argc; in zend_add_attribute()
226 for (uint32_t i = 0; i < argc; i++) { in zend_add_attribute()
/PHP-8.0/tests/basic/
H A D011.phpt2 Testing $argc and $argv handling (GET)
9 $argc = $_SERVER['argc'];
12 for ($i=0; $i<$argc; $i++) {
H A D012.phpt2 Testing $argc and $argv handling (cli)
10 $argc = $_SERVER['argc'];
13 for ($i=1; $i<$argc; $i++) {
/PHP-8.0/ext/gd/libgd/
H A Dwebpng.c20 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 Dgdtopng.c10 main (int argc, char **argv) in main() argument
14 if (argc != 3) in main()
H A Dpngtogd.c11 main (int argc, char **argv) in main() argument
15 if (argc != 3) in main()
H A Dgd2topng.c11 main (int argc, char **argv) in main() argument
15 if (argc != 3) in main()
H A Dpngtogd2.c12 main (int argc, char **argv) in main() argument
18 if (argc != 5) in main()
H A Dgd2copypal.c12 main (int argc, char **argv) in main() argument
17 if (argc != 3) in main()
H A Dgd2time.c13 main (int argc, char **argv) in main() argument
22 if (argc != 7) in main()
H A Dgdparttopng.c11 main (int argc, char **argv) in main() argument
17 if (argc != 7) in main()
/PHP-8.0/main/
H A Dgetopt.c28 static int php_opt_error(int argc, char * const *argv, int oint, int optchr, int err, int show_err)… 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.0/sapi/fuzzer/
H A Dgenerate_execute_corpus.php3 if ($argc >= 2) {
8 if ($argc >= 3) {
13 if ($argc >= 4) {
/PHP-8.0/ext/dom/
H A Ddocumentfragment.c140 int argc; in PHP_METHOD() local
145 if (zend_parse_parameters(ZEND_NUM_ARGS(), "+", &args, &argc) == FAILURE) { in PHP_METHOD()
152 dom_parent_node_append(intern, args, argc); in PHP_METHOD()
161 int argc; in PHP_METHOD() local
166 if (zend_parse_parameters(ZEND_NUM_ARGS(), "+", &args, &argc) == FAILURE) { in PHP_METHOD()
173 dom_parent_node_prepend(intern, args, argc); in PHP_METHOD()
H A Dcharacterdata.c367 int argc; 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; 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; in PHP_METHOD() local
406 if (zend_parse_parameters(ZEND_NUM_ARGS(), "+", &args, &argc) == FAILURE) { in PHP_METHOD()
413 dom_parent_node_after(intern, args, argc); in PHP_METHOD()
/PHP-8.0/ext/standard/
H A Dformatted_print.c522 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 Drand.c48 int argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
50 if (argc == 0) { in PHP_FUNCTION()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm.c26 .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 Dfpm.h38 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a…
42 int argc; member
/PHP-8.0/ext/pdo_sqlite/
H A Dsqlite_driver.c110 func->argc, in pdo_sqlite_cleanup_callbacks()
322 int argc, sqlite3_value **argv, sqlite3_context *context, in do_callback() argument
336 fake_argc = argc + is_agg; in do_callback()
363 for (i = 0; i < argc; i++) { in do_callback()
461 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback()
529 zend_long argc = -1; in PHP_METHOD() local
539 Z_PARAM_LONG(argc) in PHP_METHOD()
557 func->argc = argc; in PHP_METHOD()
596 zend_long argc = -1; in PHP_METHOD() local
606 Z_PARAM_LONG(argc) in PHP_METHOD()
[all …]
/PHP-8.0/sapi/cli/
H A Dps_title.c145 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()
/PHP-8.0/ext/spl/
H A Dspl_engine.h41 zend_class_entry *pce, zval *retval, uint32_t argc, zval *argv) in spl_instantiate_arg_n() argument
44 zend_call_known_instance_method(pce->constructor, Z_OBJ_P(retval), NULL, argc, argv); in spl_instantiate_arg_n()
/PHP-8.0/sapi/phpdbg/
H A Dcreate-test.php32 if (isset($argc) && $argc > 1) {
34 for ($i = 1; $i < $argc; $i++) {
/PHP-8.0/ext/phar/phar/
H A Dclicommand.inc19 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 …]

Completed in 40 milliseconds

123456