Home
last modified time | relevance | path

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

12

/PHP-7.1/main/
H A DSAPI.c81 sapi_module = *sf; in sapi_startup()
244 if (!sapi_module.read_post) { in sapi_read_post_block()
273 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC()
425 if (sapi_module.activate) { in sapi_activate_headers_only()
426 sapi_module.activate(); in sapi_activate_headers_only()
483 if (sapi_module.activate) { in sapi_activate()
484 sapi_module.activate(); in sapi_activate()
532 sapi_module.deactivate(); in sapi_deactivate()
1000 if (sapi_module.flush) { in sapi_flush()
1026 if (sapi_module.getenv) { in sapi_getenv()
[all …]
H A Dphp_ini.c86 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
88 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
99 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
101 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
129 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer()
394 if (sapi_module.ini_defaults) { in php_init_config()
403 if (sapi_module.php_ini_path_override) { in php_init_config()
407 } else if (!sapi_module.php_ini_ignore) { in php_init_config()
482 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config()
547 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config()
[all …]
H A Drfc1867.c267 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer()
742 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
753 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
767 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");
939 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
1004 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1024 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file");
1066 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno));
1071sapi_module.sapi_error(E_NOTICE, "Only %zd bytes were written, expected to write %zd", wlen, blen);
[all …]
H A DSAPI.h71 extern SAPI_API sapi_module_struct sapi_module; /* true global */
223 int (*startup)(struct _sapi_module_struct *sapi_module);
224 int (*shutdown)(struct _sapi_module_struct *sapi_module);
H A Dphp_variables.c308 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var()
490 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC()
501 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC()
627 if (sapi_module.register_server_variables) { in php_register_server_variables()
628 sapi_module.register_server_variables(&PG(http_globals)[TRACK_VARS_SERVER]); in php_register_server_variables()
701 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get()
720 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post()
735 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
H A Dmain.c287 if (sapi_module.executable_location) { in php_binary_init()
289 if (binary_location && !strchr(sapi_module.executable_location, '/')) { in php_binary_init()
302 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location); in php_binary_init()
403 cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")); in PHP_INI_DISP()
731 if (sapi_module.log_message) { in php_log_err_with_severity()
732 sapi_module.log_message(log_message, syslog_type_int); in php_log_err_with_severity()
1190 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")) && in php_error_cb()
2124 sapi_module = *sf; in php_module_startup()
2188 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup()
2308 if (sapi_module.additional_functions) { in php_module_startup()
[all …]
/PHP-7.1/ext/standard/
H A Dinfo.c104 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash()
125 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash()
142 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
163 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
206 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
225 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
262 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
829 if (!sapi_module.phpinfo_as_text) { in php_print_info()
879 if (sapi_module.pretty_name) { in php_print_info()
1366 if (sapi_module.name) { in PHP_FUNCTION()
[all …]
H A Dcredits.c30 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits()
34 if (!sapi_module.phpinfo_as_text) { in php_print_credits()
52 if (!sapi_module.phpinfo_as_text) { in php_print_credits()
128 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits()
H A Dphp_fopen_wrapper.c255 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
271 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
287 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
308 if (strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
/PHP-7.1/sapi/cli/
H A Dphp_cli.c1304 sapi_module = &cli_server_sapi_module; in WinMain()
1313 sapi_module = &cli_sapi_module; in WinMain()
1324 sapi_module->phpinfo_as_text = 1; in WinMain()
1325 sapi_module->php_ini_ignore_cwd = 1; in WinMain()
1326 sapi_startup(sapi_module); in WinMain()
1329 sapi_module->php_ini_ignore = ini_ignore; in WinMain()
1331 sapi_module->executable_location = argv[0]; in WinMain()
1333 if (sapi_module == &cli_sapi_module) { in WinMain()
1345 sapi_module->ini_entries = ini_entries; in WinMain()
1348 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain()
[all …]
H A Dphp_cli_server.c493 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ in sapi_cli_server_startup() argument
495 if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) { in sapi_cli_server_startup()
603 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) { in sapi_cli_server_register_variable()
1191 if (sapi_module.log_message) { in php_cli_server_logf()
1192 sapi_module.log_message(buf, -1); in php_cli_server_logf()
2205 send_header_func = sapi_module.send_headers; in php_cli_server_dispatch()
2209 sapi_module.send_headers = sapi_cli_server_discard_headers; in php_cli_server_dispatch()
2211 sapi_module.send_headers = send_header_func; in php_cli_server_dispatch()
2625 sapi_module.phpinfo_as_text = 0; in do_cli_server()
/PHP-7.1/sapi/embed/
H A Dphp_embed.c107 static int php_embed_startup(sapi_module_struct *sapi_module) in php_embed_startup() argument
109 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_embed_startup()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_webdata_transfer.c69 if (sapi_module.name) { in phpdbg_webdata_compress()
70 ZVAL_STRING(&zv[6], sapi_module.name); in phpdbg_webdata_compress()
H A Dphpdbg_wait.c200 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 Dphpdbg_rinit_hook.c36 if (!strcmp(sapi_module.name, PHPDBG_NAME)) { in PHP_MINIT_FUNCTION()
H A Dphpdbg.c928 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len))… in php_sapi_phpdbg_register_vars()
931 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &le… in php_sapi_phpdbg_register_vars()
935 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
938 …if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
945 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in php_sapi_phpdbg_register_vars()
/PHP-7.1/sapi/litespeed/
H A Dlsapi_main.c108 static void init_sapi_from_env(sapi_module_struct *sapi_module) in init_sapi_from_env() argument
113 sapi_module->php_ini_path_override = p; in init_sapi_from_env()
118 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
120 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup()
123 argv0 = sapi_module->executable_location; in php_lsapi_startup()
233 if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len)) { in add_variable()
1060 … %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
1062 …uilt: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/PHP-7.1/sapi/apache2handler/
H A Dsapi_apache2.c281 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len)) { in php_apache_sapi_register_variables()
286 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val… in php_apache_sapi_register_variables()
383 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
385 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_main.c557 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
619 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
626 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
836 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
838 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1758 … %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
1760 …uilt: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-7.1/ext/session/
H A Dmod_mm.c274 int mod_name_len = strlen(sapi_module.name); in PHP_MINIT_FUNCTION()
300 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION()
/PHP-7.1/ext/opcache/
H A DZendAccelerator.c804 if (sapi_module.get_stat && in zend_get_file_handle_timestamp()
808 zend_stat_t *tmpbuf = sapi_module.get_stat(); in zend_get_file_handle_timestamp()
2512 if (sapi_module.name) { in accel_find_sapi()
2514 if (strcmp(sapi_module.name, *sapi_name) == 0) { in accel_find_sapi()
2519 strcmp(sapi_module.name, "cli") == 0 in accel_find_sapi()
2520 || strcmp(sapi_module.name, "phpdbg") == 0)) { in accel_find_sapi()
2790 (strcmp(sapi_module.name, "cli") == 0 ||
2791 strcmp(sapi_module.name, "cli-server") == 0 ||
2792 strcmp(sapi_module.name, "cgi-fcgi") == 0 ||
2793 strcmp(sapi_module.name, "fpm-fcgi") == 0)) {
[all …]
/PHP-7.1/ext/readline/
H A Dreadline_cli.c719 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
/PHP-7.1/win32/
H A Dcodepage.c257 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_cp_is_cli_sapi()
/PHP-7.1/sapi/cgi/
H A Dcgi_main.c667 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
750 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
759 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
973 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
975 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
2446 … %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
2448 …uilt: %s %s)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-7.1/ext/mbstring/
H A Dmb_gpc.c332 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len)) { in _php_mb_encoding_handler_ex()

Completed in 221 milliseconds

12