/PHP-8.2/main/ |
H A D | SAPI.c | 73 sapi_module = *sf; in sapi_startup() 236 if (!sapi_module.read_post) { in sapi_read_post_block() 265 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() 475 if (sapi_module.activate) { in sapi_activate() 476 sapi_module.activate(); in sapi_activate() 524 sapi_module.deactivate(); in sapi_deactivate_module() 998 if (sapi_module.flush) { in sapi_flush() 1022 if (!sapi_module.getenv) { in sapi_getenv() [all …]
|
H A D | php_ini.c | 82 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() 410 if (sapi_module.ini_defaults) { in php_init_config() 419 if (sapi_module.php_ini_path_override) { in php_init_config() 423 } else if (!sapi_module.php_ini_ignore) { in php_init_config() 498 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config() 565 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config() [all …]
|
H A D | rfc1867.c | 254 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer() 732 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data"); 743 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data"); 758 sapi_module.sapi_error(E_WARNING, "Boundary too large in multipart/form-data POST data"); 764 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer"); 934 … sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded"); 940 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled"); 1002 sapi_module.sapi_error(E_NOTICE, "No file uploaded"); 1022 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file"); 1064 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno)); [all …]
|
H A D | SAPI.h | 63 extern SAPI_API sapi_module_struct sapi_module; /* true global */ 219 int (*startup)(struct _sapi_module_struct *sapi_module); 220 int (*shutdown)(struct _sapi_module_struct *sapi_module);
|
H A D | main.c | 357 if (sapi_module.executable_location) { in php_binary_init() 359 if (!strchr(sapi_module.executable_location, '/')) { in php_binary_init() 372 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location); in php_binary_init() 478 …cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi… in PHP_INI_DISP() 864 if (sapi_module.log_message) { in php_log_err_with_severity() 865 sapi_module.log_message(log_message, syslog_type_int); in php_log_err_with_severity() 1359 …if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.n… in php_error_cb() 2099 sapi_module = *sf; in php_module_startup() 2173 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup() 2304 if (sapi_module.additional_functions) { in php_module_startup() [all …]
|
H A D | php_variables.c | 382 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var() 577 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC() 730 if (sapi_module.register_server_variables) { in php_register_server_variables() 731 sapi_module.register_server_variables(arr); in php_register_server_variables() 803 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get() 822 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post() 837 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
|
/PHP-8.2/ext/standard/ |
H A D | info.c | 96 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() 1338 if (sapi_module.name) { in PHP_FUNCTION() [all …]
|
H A D | credits.c | 26 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 D | php_fopen_wrapper.c | 245 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-8.2/sapi/cli/ |
H A D | php_cli.c | 410 return php_module_startup(sapi_module, NULL); in php_cli_startup() 1261 sapi_module = &cli_server_sapi_module; in WinMain() 1274 sapi_module = &cli_sapi_module; in WinMain() 1285 sapi_module->phpinfo_as_text = 1; in WinMain() 1286 sapi_module->php_ini_ignore_cwd = 1; in WinMain() 1287 sapi_startup(sapi_module); in WinMain() 1290 sapi_module->php_ini_ignore = ini_ignore; in WinMain() 1292 sapi_module->executable_location = argv[0]; in WinMain() 1294 if (sapi_module == &cli_sapi_module) { in WinMain() 1301 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain() [all …]
|
H A D | php_cli_server.c | 504 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ in sapi_cli_server_startup() argument 506 return php_module_startup(sapi_module, &cli_server_module_entry); in sapi_cli_server_startup() 611 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) { in sapi_cli_server_register_variable() 2315 send_header_func = sapi_module.send_headers; in php_cli_server_dispatch() 2319 sapi_module.send_headers = sapi_cli_server_discard_headers; in php_cli_server_dispatch() 2321 sapi_module.send_headers = send_header_func; in php_cli_server_dispatch() 2840 sapi_module.phpinfo_as_text = 0; in do_cli_server()
|
/PHP-8.2/win32/ |
H A D | console.c | 114 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_console_is_cli_sapi()
|
/PHP-8.2/sapi/embed/ |
H A D | php_embed.c | 120 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-8.2/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 63 static int startup(sapi_module_struct *sapi_module) in startup() argument 65 return php_module_startup(sapi_module, NULL); in startup()
|
/PHP-8.2/ext/opcache/ |
H A D | ZendAccelerator.c | 1023 if (sapi_module.get_stat && in zend_get_file_handle_timestamp() 2842 if (sapi_module.name) { in accel_find_sapi() 2849 strcmp(sapi_module.name, "cli") == 0 in accel_find_sapi() 4702 sapi_module.activate = NULL; 4703 sapi_module.deactivate = NULL; 4708 sapi_module.getenv = NULL; 4710 sapi_module.flush = preload_flush; 4768 sapi_module.activate = orig_activate; 4774 sapi_module.getenv = orig_getenv; 4775 sapi_module.ub_write = orig_ub_write; [all …]
|
H A D | shared_alloc_win32.c | 81 p += strlcpy(p, sapi_module.name, 21); in create_name_with_username()
|
/PHP-8.2/sapi/litespeed/ |
H A D | lsapi_main.c | 89 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-8.2/ext/mbstring/ |
H A D | mb_gpc.c | 279 …if (sapi_module.input_filter(info->data_type, ZSTR_VAL(converted_var), &val, ZSTR_LEN(converted_va… in _php_mb_encoding_handler_ex() 288 if (sapi_module.input_filter(info->data_type, var, &val, len_list[n], &new_val_len)) { in _php_mb_encoding_handler_ex()
|
/PHP-8.2/sapi/apache2handler/ |
H A D | sapi_apache2.c | 277 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-8.2/sapi/fpm/fpm/ |
H A D | fpm_main.c | 513 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-8.2/ext/session/ |
H A D | mod_mm.c | 268 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-8.2/sapi/cgi/ |
H A D | cgi_main.c | 659 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); 2361 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… 2363 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
|
/PHP-8.2/ext/readline/ |
H A D | readline_cli.c | 739 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
|
/PHP-8.2/sapi/phpdbg/ |
H A D | phpdbg.c | 823 …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()
|
/PHP-8.2/ext/libxml/ |
H A D | libxml.c | 807 if (sapi_module.name) { in PHP_MINIT_FUNCTION() 816 if (strcmp(sapi_module.name, *sapi_name) == 0) { in PHP_MINIT_FUNCTION()
|