Home
last modified time | relevance | path

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

12345

/php-src/Zend/
H A Dzend_attributes.h39 #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 Dzend_attributes.c42 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 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-src/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-src/main/
H A Dgetopt.c28 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 Dformatted_print.c519 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 Dfpm.c26 .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 Dfpm.h44 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 Dgenerate_execute_corpus.php5 if ($argc >= 2) {
10 if ($argc >= 3) {
/php-src/ext/pdo_sqlite/
H A Dsqlite_driver.c108 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 Dps_title.c147 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 Dphp_cli.c591 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 Dcreate-test.php32 if (isset($argc) && $argc > 1) {
34 for ($i = 1; $i < $argc; $i++) {
/php-src/sapi/embed/
H A DREADME.md14 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 Dphp_embed.c163 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 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 …]
/php-src/ext/
H A Dext_skel.php154 function process_args($argv, $argc) { argument
166 for($i = 1; $i < $argc; ++$i)
371 if ($argc < 1) {
376 $options = process_args($argv, $argc);

Completed in 32 milliseconds

12345