Home
last modified time | relevance | path

Searched refs:sapi_module (Results 1 – 25 of 39) sorted by relevance

12

/php-src/main/
H A DSAPI.c71 sapi_module = *sf; in sapi_startup()
236 if (!sapi_module.read_post) { in sapi_read_post_block()
267 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC()
417 if (sapi_module.activate) { in sapi_activate_headers_only()
418 sapi_module.activate(); in sapi_activate_headers_only()
477 if (sapi_module.activate) { in sapi_activate()
478 sapi_module.activate(); in sapi_activate()
526 sapi_module.deactivate(); in sapi_deactivate_module()
1000 if (sapi_module.flush) { in sapi_flush()
1024 if (!sapi_module.getenv) { in sapi_getenv()
[all …]
H A Dphp_ini.c82 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
84 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
95 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
97 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
137 if (!sapi_module.phpinfo_as_text) { in display_ini_entries()
421 if (sapi_module.ini_defaults) { in php_init_config()
430 if (sapi_module.php_ini_path_override) { in php_init_config()
434 } else if (!sapi_module.php_ini_ignore) { in php_init_config()
502 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config()
555 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config()
[all …]
H A DSAPI.h63 extern SAPI_API sapi_module_struct sapi_module; /* true global */
241 int (*startup)(struct _sapi_module_struct *sapi_module);
242 int (*shutdown)(struct _sapi_module_struct *sapi_module);
H A Dphp_variables.c383 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var()
579 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC()
726 if (sapi_module.register_server_variables) { in php_register_server_variables()
727 sapi_module.register_server_variables(arr); in php_register_server_variables()
799 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get()
818 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post()
833 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
H A Drfc1867.c231 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer()
862 …if (++count <= max_input_vars && sapi_module.input_filter(PARSE_POST, param, &value, value_len, &n…
981 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1025sapi_module.sapi_error(E_NOTICE, "upload_max_filesize of " ZEND_LONG_FMT " bytes exceeded - file […
1030sapi_module.sapi_error(E_NOTICE, "MAX_FILE_SIZE of %" PRId64 " bytes exceeded - file [%s=%s] not s…
1043 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno));
1048sapi_module.sapi_error(E_NOTICE, "Only %zd bytes were written, expected to write %zd", wlen, blen);
1067sapi_module.sapi_error(E_NOTICE, "Missing mime boundary at the end of the data for file %s", filen…
H A Dmain.c368 if (sapi_module.executable_location) { in php_binary_init()
370 if (!strchr(sapi_module.executable_location, '/')) { in php_binary_init()
383 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location); in php_binary_init()
396 …} else if (!VCWD_REALPATH(sapi_module.executable_location, binary_location) || VCWD_ACCESS(binary_… in php_binary_init()
489 …cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi… in PHP_INI_DISP()
880 if (sapi_module.log_message) { in php_log_err_with_severity()
881 sapi_module.log_message(log_message, syslog_type_int); in php_log_err_with_severity()
1374 …if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.n… in php_error_cb()
2094 sapi_module = *sf; in php_module_startup()
2235 if (sapi_module.additional_functions) { in php_module_startup()
[all …]
H A Dmain_arginfo.h101 REGISTER_STRING_CONSTANT("PHP_SAPI", sapi_module.name, CONST_PERSISTENT | CONST_NO_FILE_CACHE); in register_main_symbols()
/php-src/ext/standard/
H A Dinfo.c96 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash()
119 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash()
136 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
157 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
179 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
198 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
230 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
785 if (!sapi_module.phpinfo_as_text) { in php_print_info()
841 if (sapi_module.pretty_name) { in php_print_info()
1319 if (sapi_module.name) { in PHP_FUNCTION()
[all …]
H A Dcredits.c26 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits()
30 if (!sapi_module.phpinfo_as_text) { in php_print_credits()
48 if (!sapi_module.phpinfo_as_text) { in php_print_credits()
124 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits()
H A Dphp_fopen_wrapper.c245 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
261 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
277 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
298 if (strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
/php-src/sapi/cli/
H A Dphp_cli.c410 return php_module_startup(sapi_module, NULL); in php_cli_startup()
1267 sapi_module = &cli_server_sapi_module; in WinMain()
1280 sapi_module = &cli_sapi_module; in WinMain()
1291 sapi_module->phpinfo_as_text = 1; in WinMain()
1292 sapi_module->php_ini_ignore_cwd = 1; in WinMain()
1293 sapi_startup(sapi_module); in WinMain()
1296 sapi_module->php_ini_ignore = ini_ignore; in WinMain()
1298 sapi_module->executable_location = argv[0]; in WinMain()
1300 if (sapi_module == &cli_sapi_module) { in WinMain()
1307 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain()
[all …]
/php-src/win32/
H A Dconsole.c114 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_console_is_cli_sapi()
/php-src/sapi/embed/
H A Dphp_embed.c120 static int php_embed_startup(sapi_module_struct *sapi_module) in php_embed_startup() argument
122 return php_module_startup(sapi_module, NULL); in php_embed_startup()
/php-src/sapi/fuzzer/
H A Dfuzzer-sapi.c63 static int startup(sapi_module_struct *sapi_module) in startup() argument
65 return php_module_startup(sapi_module, NULL); in startup()
/php-src/ext/opcache/
H A DZendAccelerator.c1017 if (sapi_module.get_stat && in zend_get_file_handle_timestamp()
2817 if (sapi_module.name) { in accel_find_sapi()
4591 sapi_module.activate = NULL;
4592 sapi_module.deactivate = NULL;
4597 sapi_module.getenv = NULL;
4598 sapi_module.ub_write = preload_ub_write;
4599 sapi_module.flush = preload_flush;
4657 sapi_module.activate = orig_activate;
4663 sapi_module.getenv = orig_getenv;
4664 sapi_module.ub_write = orig_ub_write;
[all …]
H A Dshared_alloc_win32.c80 p += strlcpy(p, sapi_module.name, 21); in create_name_with_username()
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c95 if ((strncmp(sapi_module.name, "cgi", 3) != 0) && in PHP_METHOD()
96 (strcmp(sapi_module.name, "cli") != 0) && in PHP_METHOD()
97 (strncmp(sapi_module.name, "embed", 5) != 0) in PHP_METHOD()
/php-src/sapi/litespeed/
H A Dlsapi_main.c89 static void init_sapi_from_env(sapi_module_struct *sapi_module) in init_sapi_from_env() argument
94 sapi_module->php_ini_path_override = p; in init_sapi_from_env()
98 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
100 if (php_module_startup(sapi_module, NULL)==FAILURE) { in php_lsapi_startup()
103 argv0 = sapi_module->executable_location; in php_lsapi_startup()
209 if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len)) { in add_variable()
1276 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
1278 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/php-src/ext/mbstring/
H A Dmb_gpc.c257 …if (sapi_module.input_filter(info->data_type, ZSTR_VAL(converted_var), &val, ZSTR_LEN(converted_va… in _php_mb_encoding_handler_ex()
266 if (sapi_module.input_filter(info->data_type, var, &val, len_list[n], &new_val_len)) { in _php_mb_encoding_handler_ex()
/php-src/sapi/apache2handler/
H A Dsapi_apache2.c277 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len)) { in php_apache_sapi_register_variables()
282 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val… in php_apache_sapi_register_variables()
384 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
386 return php_module_startup(sapi_module, &php_apache_module); in php_apache2_startup()
/php-src/sapi/fpm/fpm/
H A Dfpm_main.c513 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
588 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
595 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
787 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ in php_cgi_startup() argument
789 return php_module_startup(sapi_module, &cgi_module_entry); in php_cgi_startup()
1709 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
1711 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
/php-src/ext/session/
H A Dmod_mm.c268 size_t mod_name_len = strlen(sapi_module.name); in PHP_MINIT_FUNCTION()
294 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION()
/php-src/sapi/cgi/
H A Dcgi_main.c659 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
739 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
748 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
968 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
970 return php_module_startup(sapi_module, &cgi_module_entry);
2381 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
2383 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/php-src/ext/readline/
H A Dreadline_cli.c740 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
/php-src/sapi/phpdbg/
H A Dphpdbg.c823 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len))… in php_sapi_phpdbg_register_vars()
826 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &le… in php_sapi_phpdbg_register_vars()
830 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
833 …if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
840 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in php_sapi_phpdbg_register_vars()

Completed in 99 milliseconds

12