/PHP-7.3/main/ |
H A D | SAPI.c | 79 sapi_module = *sf; in sapi_startup() 242 if (!sapi_module.read_post) { in sapi_read_post_block() 271 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC() 423 if (sapi_module.activate) { in sapi_activate_headers_only() 424 sapi_module.activate(); in sapi_activate_headers_only() 481 if (sapi_module.activate) { in sapi_activate() 482 sapi_module.activate(); in sapi_activate() 530 sapi_module.deactivate(); in sapi_deactivate() 1003 if (sapi_module.flush) { in sapi_flush() 1029 if (sapi_module.getenv) { in sapi_getenv() [all …]
|
H A D | php_ini.c | 84 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb() 86 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb() 97 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb() 99 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb() 127 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer() 430 if (sapi_module.ini_defaults) { in php_init_config() 439 if (sapi_module.php_ini_path_override) { in php_init_config() 443 } else if (!sapi_module.php_ini_ignore) { in php_init_config() 518 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config() 583 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config() [all …]
|
H A D | rfc1867.c | 265 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer() 741 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data"); 752 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data"); 766 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer"); 933 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded"); 938 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled"); 1003 sapi_module.sapi_error(E_NOTICE, "No file uploaded"); 1023 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file"); 1065 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno)); 1070 …sapi_module.sapi_error(E_NOTICE, "Only %zd bytes were written, expected to write %zd", wlen, blen); [all …]
|
H A D | SAPI.h | 68 extern SAPI_API sapi_module_struct sapi_module; /* true global */ 221 int (*startup)(struct _sapi_module_struct *sapi_module); 222 int (*shutdown)(struct _sapi_module_struct *sapi_module);
|
H A D | php_variables.c | 325 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var() 509 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC() 522 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC() 684 if (sapi_module.register_server_variables) { in php_register_server_variables() 685 sapi_module.register_server_variables(arr); in php_register_server_variables() 760 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get() 779 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post() 794 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
|
H A D | main.c | 444 if (sapi_module.executable_location) { in php_binary_init() 446 if (binary_location && !strchr(sapi_module.executable_location, '/')) { in php_binary_init() 459 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location); in php_binary_init() 561 …cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi… in PHP_INI_DISP() 889 if (sapi_module.log_message) { in php_log_err_with_severity() 890 sapi_module.log_message(log_message, syslog_type_int); in php_log_err_with_severity() 1348 …if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.n… in php_error_cb() 2158 sapi_module = *sf; in php_module_startup() 2222 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup() 2348 if (sapi_module.additional_functions) { in php_module_startup() [all …]
|
/PHP-7.3/ext/standard/ |
H A D | info.c | 99 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash() 120 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash() 137 if (!sapi_module.phpinfo_as_text) { in php_info_print_module() 158 if (!sapi_module.phpinfo_as_text) { in php_info_print_module() 201 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array() 220 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array() 251 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array() 786 if (!sapi_module.phpinfo_as_text) { in php_print_info() 836 if (sapi_module.pretty_name) { in php_print_info() 1327 if (sapi_module.name) { in PHP_FUNCTION() [all …]
|
H A D | credits.c | 28 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits() 32 if (!sapi_module.phpinfo_as_text) { in php_print_credits() 50 if (!sapi_module.phpinfo_as_text) { in php_print_credits() 126 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits()
|
H A D | php_fopen_wrapper.c | 247 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php() 263 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php() 279 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php() 300 if (strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
|
/PHP-7.3/sapi/cli/ |
H A D | php_cli.c | 1315 sapi_module = &cli_server_sapi_module; in WinMain() 1328 sapi_module = &cli_sapi_module; in WinMain() 1339 sapi_module->phpinfo_as_text = 1; in WinMain() 1340 sapi_module->php_ini_ignore_cwd = 1; in WinMain() 1341 sapi_startup(sapi_module); in WinMain() 1344 sapi_module->php_ini_ignore = ini_ignore; in WinMain() 1346 sapi_module->executable_location = argv[0]; in WinMain() 1348 if (sapi_module == &cli_sapi_module) { in WinMain() 1360 sapi_module->ini_entries = ini_entries; in WinMain() 1363 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain() [all …]
|
H A D | php_cli_server.c | 496 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ in sapi_cli_server_startup() argument 498 if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) { in sapi_cli_server_startup() 606 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) { in sapi_cli_server_register_variable() 1189 if (sapi_module.log_message) { in php_cli_server_logf() 1190 sapi_module.log_message(buf, -1); in php_cli_server_logf() 2186 send_header_func = sapi_module.send_headers; in php_cli_server_dispatch() 2190 sapi_module.send_headers = sapi_cli_server_discard_headers; in php_cli_server_dispatch() 2192 sapi_module.send_headers = send_header_func; in php_cli_server_dispatch() 2604 sapi_module.phpinfo_as_text = 0; in do_cli_server()
|
/PHP-7.3/sapi/embed/ |
H A D | php_embed.c | 106 static int php_embed_startup(sapi_module_struct *sapi_module) in php_embed_startup() argument 108 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_embed_startup()
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_webdata_transfer.c | 69 if (sapi_module.name) { in phpdbg_webdata_compress() 70 ZVAL_STRING(&zv[6], sapi_module.name); in phpdbg_webdata_compress()
|
H A D | phpdbg_wait.c | 200 PHPDBG_G(sapi_name_ptr) = sapi_module.name = strdup(Z_STRVAL_P(zvp)); in phpdbg_webdata_decompress() 202 PHPDBG_G(sapi_name_ptr) = sapi_module.name = NULL; in phpdbg_webdata_decompress() 233 if (!sapi_module.name || strcmp(sapi_module.name, Z_STRVAL_P(module))) { in phpdbg_webdata_decompress()
|
H A D | phpdbg_rinit_hook.c | 36 if (!strcmp(sapi_module.name, PHPDBG_NAME)) { in PHP_MINIT_FUNCTION()
|
/PHP-7.3/sapi/litespeed/ |
H A D | lsapi_main.c | 98 static void init_sapi_from_env(sapi_module_struct *sapi_module) in init_sapi_from_env() argument 103 sapi_module->php_ini_path_override = p; in init_sapi_from_env() 108 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument 110 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup() 113 argv0 = sapi_module->executable_location; in php_lsapi_startup() 223 if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len)) { in add_variable() 1302 … %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main() 1304 …uilt: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
|
/PHP-7.3/sapi/apache2handler/ |
H A D | sapi_apache2.c | 268 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len)) { in php_apache_sapi_register_variables() 273 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val… in php_apache_sapi_register_variables() 370 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument 372 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
|
/PHP-7.3/sapi/fpm/fpm/ |
H A D | fpm_main.c | 522 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var() 584 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 591 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 780 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ in php_cgi_startup() argument 782 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) { in php_cgi_startup() 1732 … %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main() 1734 …uilt: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
|
/PHP-7.3/ext/session/ |
H A D | mod_mm.c | 272 int mod_name_len = strlen(sapi_module.name); in PHP_MINIT_FUNCTION() 298 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION()
|
/PHP-7.3/ext/opcache/ |
H A D | ZendAccelerator.c | 954 if (sapi_module.get_stat && in zend_get_file_handle_timestamp() 958 zend_stat_t *tmpbuf = sapi_module.get_stat(); in zend_get_file_handle_timestamp() 2575 if (sapi_module.name) { in accel_find_sapi() 2577 if (strcmp(sapi_module.name, *sapi_name) == 0) { in accel_find_sapi() 2582 strcmp(sapi_module.name, "cli") == 0 in accel_find_sapi() 2583 || strcmp(sapi_module.name, "phpdbg") == 0)) { in accel_find_sapi() 2867 (strcmp(sapi_module.name, "cli") == 0 || in accel_startup() 2868 strcmp(sapi_module.name, "cli-server") == 0 || in accel_startup() 2869 strcmp(sapi_module.name, "cgi-fcgi") == 0 || in accel_startup() 2870 strcmp(sapi_module.name, "fpm-fcgi") == 0)) { in accel_startup() [all …]
|
H A D | shared_alloc_win32.c | 90 …snprintf(newname, sizeof(newname) - 1, "%s@%s@%.20s@%.32s", name, uname, sapi_module.name, ZCG(sys… in create_name_with_username()
|
/PHP-7.3/sapi/cgi/ |
H A D | cgi_main.c | 669 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var() 749 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 758 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables() 979 static int php_cgi_startup(sapi_module_struct *sapi_module) argument 981 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) { 2402 … %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… 2404 …uilt: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
|
/PHP-7.3/ext/readline/ |
H A D | readline_cli.c | 720 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
|
/PHP-7.3/win32/ |
H A D | codepage.c | 297 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_cp_is_cli_sapi()
|
/PHP-7.3/ext/mbstring/ |
H A D | mb_gpc.c | 330 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len)) { in _php_mb_encoding_handler_ex()
|