/PHP-8.0/main/ |
H A D | SAPI.c | 73 sapi_module = *sf; in sapi_startup() 232 if (!sapi_module.read_post) { in sapi_read_post_block() 261 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC() 413 if (sapi_module.activate) { in sapi_activate_headers_only() 414 sapi_module.activate(); in sapi_activate_headers_only() 471 if (sapi_module.activate) { in sapi_activate() 472 sapi_module.activate(); in sapi_activate() 520 sapi_module.deactivate(); in sapi_deactivate_module() 994 if (sapi_module.flush) { in sapi_flush() 1020 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() 412 if (sapi_module.ini_defaults) { in php_init_config() 421 if (sapi_module.php_ini_path_override) { in php_init_config() 425 } else if (!sapi_module.php_ini_ignore) { in php_init_config() 500 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config() 566 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"); 757 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer"); 927 … sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded"); 933 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled"); 998 sapi_module.sapi_error(E_NOTICE, "No file uploaded"); 1018 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file"); 1060 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno)); 1065 …sapi_module.sapi_error(E_NOTICE, "Only %zd bytes were written, expected to write %zd", wlen, blen); [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 | php_variables.c | 334 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var() 529 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC() 677 if (sapi_module.register_server_variables) { in php_register_server_variables() 678 sapi_module.register_server_variables(arr); in php_register_server_variables() 751 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get() 770 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post() 785 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
|
H A D | main.c | 361 if (sapi_module.executable_location) { in php_binary_init() 363 if (!strchr(sapi_module.executable_location, '/')) { in php_binary_init() 376 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location); in php_binary_init() 483 …cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi… in PHP_INI_DISP() 858 if (sapi_module.log_message) { in php_log_err_with_severity() 859 sapi_module.log_message(log_message, syslog_type_int); in php_log_err_with_severity() 1345 …if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.n… in php_error_cb() 2070 sapi_module = *sf; in php_module_startup() 2143 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup() 2270 if (sapi_module.additional_functions) { in php_module_startup() [all …]
|
/PHP-8.0/ext/standard/ |
H A D | info.c | 97 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash() 118 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash() 135 if (!sapi_module.phpinfo_as_text) { in php_info_print_module() 156 if (!sapi_module.phpinfo_as_text) { in php_info_print_module() 178 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array() 197 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array() 229 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array() 756 if (!sapi_module.phpinfo_as_text) { in php_print_info() 812 if (sapi_module.pretty_name) { in php_print_info() 1303 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.0/sapi/cli/ |
H A D | php_cli.c | 1256 sapi_module = &cli_server_sapi_module; in WinMain() 1269 sapi_module = &cli_sapi_module; in WinMain() 1280 sapi_module->phpinfo_as_text = 1; in WinMain() 1281 sapi_module->php_ini_ignore_cwd = 1; in WinMain() 1282 sapi_startup(sapi_module); in WinMain() 1285 sapi_module->php_ini_ignore = ini_ignore; in WinMain() 1287 sapi_module->executable_location = argv[0]; in WinMain() 1289 if (sapi_module == &cli_sapi_module) { in WinMain() 1301 sapi_module->ini_entries = ini_entries; in WinMain() 1304 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain() [all …]
|
/PHP-8.0/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.0/sapi/embed/ |
H A D | php_embed.c | 105 static int php_embed_startup(sapi_module_struct *sapi_module) in php_embed_startup() argument 107 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_embed_startup()
|
/PHP-8.0/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 63 static int startup(sapi_module_struct *sapi_module) in startup() argument 65 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in startup()
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_webdata_transfer.c | 67 if (sapi_module.name) { in phpdbg_webdata_compress() 68 ZVAL_STRING(&zv[6], sapi_module.name); in phpdbg_webdata_compress()
|
H A D | phpdbg_wait.c | 194 PHPDBG_G(sapi_name_ptr) = sapi_module.name = strdup(Z_STRVAL_P(zvp)); in phpdbg_webdata_decompress() 196 PHPDBG_G(sapi_name_ptr) = sapi_module.name = NULL; in phpdbg_webdata_decompress() 227 if (!sapi_module.name || strcmp(sapi_module.name, Z_STRVAL_P(module))) { in phpdbg_webdata_decompress()
|
H A D | phpdbg_rinit_hook.c | 34 if (!strcmp(sapi_module.name, PHPDBG_NAME)) { in PHP_MINIT_FUNCTION()
|
/PHP-8.0/ext/opcache/ |
H A D | ZendAccelerator.c | 951 if (sapi_module.get_stat && in zend_get_file_handle_timestamp() 2619 if (sapi_module.name) { in accel_find_sapi() 2626 strcmp(sapi_module.name, "cli") == 0 in accel_find_sapi() 4904 sapi_module.activate = NULL; 4905 sapi_module.deactivate = NULL; 4910 sapi_module.getenv = NULL; 4912 sapi_module.flush = preload_flush; 4968 sapi_module.activate = orig_activate; 4974 sapi_module.getenv = orig_getenv; 4975 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.0/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, 0)==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() 1279 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main() 1281 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
|
/PHP-8.0/sapi/apache2handler/ |
H A D | sapi_apache2.c | 272 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len)) { in php_apache_sapi_register_variables() 277 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val… in php_apache_sapi_register_variables() 374 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument 376 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_main.c | 511 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var() 573 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 580 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 767 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ in php_cgi_startup() argument 769 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) { in php_cgi_startup() 1695 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main() 1697 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
|
/PHP-8.0/ext/session/ |
H A D | mod_mm.c | 270 int mod_name_len = strlen(sapi_module.name); in PHP_MINIT_FUNCTION() 296 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION()
|
/PHP-8.0/sapi/cgi/ |
H A D | cgi_main.c | 658 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var() 738 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 747 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 967 static int php_cgi_startup(sapi_module_struct *sapi_module) argument 969 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) { 2375 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… 2377 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
|
/PHP-8.0/ext/readline/ |
H A D | readline_cli.c | 724 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
|
/PHP-8.0/ext/mbstring/ |
H A D | mb_gpc.c | 315 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len)) { in _php_mb_encoding_handler_ex()
|