Home
last modified time | relevance | path

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

12

/PHP-7.0/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()
533 sapi_module.deactivate(); in sapi_deactivate()
1001 if (sapi_module.flush) { in sapi_flush()
1027 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.c265 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer()
740 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
751 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
765 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
932 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
937 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));
1069sapi_module.sapi_error(E_NOTICE, "Only %d bytes were written, expected to write %d", wlen, blen);
[all …]
H A DSAPI.h72 extern SAPI_API sapi_module_struct sapi_module; /* true global */
224 int (*startup)(struct _sapi_module_struct *sapi_module);
225 int (*shutdown)(struct _sapi_module_struct *sapi_module);
H A Dphp_variables.c288 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var()
470 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC()
481 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC()
607 if (sapi_module.register_server_variables) { in php_register_server_variables()
608 sapi_module.register_server_variables(&PG(http_globals)[TRACK_VARS_SERVER]); in php_register_server_variables()
681 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get()
700 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post()
715 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
H A Dmain.c270 if (sapi_module.executable_location) { in php_binary_init()
272 if (binary_location && !strchr(sapi_module.executable_location, '/')) { in php_binary_init()
386 cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")); in PHP_INI_DISP()
691 if (sapi_module.log_message) { in php_log_err()
692 sapi_module.log_message(log_message); in php_log_err()
1142 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")) && in php_error_cb()
2076 sapi_module = *sf; in php_module_startup()
2097 zuf.block_interruptions = sapi_module.block_interruptions; in php_module_startup()
2098 zuf.unblock_interruptions = sapi_module.unblock_interruptions; in php_module_startup()
2142 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup()
[all …]
H A Doutput.c246 return sapi_module.ub_write(str, len); in php_output_write_unbuffered()
1073 sapi_module.ub_write(context.out.data, context.out.used); in php_output_op()
/PHP-7.0/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()
260 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
827 if (!sapi_module.phpinfo_as_text) { in php_print_info()
877 if (sapi_module.pretty_name) { in php_print_info()
1364 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.0/sapi/cli/
H A Dphp_cli.c1283 sapi_module = &cli_server_sapi_module; in WinMain()
1292 sapi_module = &cli_sapi_module; in WinMain()
1303 sapi_module->phpinfo_as_text = 1; in WinMain()
1304 sapi_module->php_ini_ignore_cwd = 1; in WinMain()
1305 sapi_startup(sapi_module); in WinMain()
1308 sapi_module->php_ini_ignore = ini_ignore; in WinMain()
1310 sapi_module->executable_location = argv[0]; in WinMain()
1312 if (sapi_module == &cli_sapi_module) { in WinMain()
1324 sapi_module->ini_entries = ini_entries; in WinMain()
1327 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain()
[all …]
H A Dphp_cli_server.c483 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ in sapi_cli_server_startup() argument
485 if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) { in sapi_cli_server_startup()
593 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) { in sapi_cli_server_register_variable()
1173 if (sapi_module.log_message) { in php_cli_server_logf()
1174 sapi_module.log_message(buf); in php_cli_server_logf()
2173 send_header_func = sapi_module.send_headers; in php_cli_server_dispatch()
2177 sapi_module.send_headers = sapi_cli_server_discard_headers; in php_cli_server_dispatch()
2179 sapi_module.send_headers = send_header_func; in php_cli_server_dispatch()
2583 sapi_module.phpinfo_as_text = 0; in do_cli_server()
/PHP-7.0/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.0/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.c895 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len))… in php_sapi_phpdbg_register_vars()
898 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &le… in php_sapi_phpdbg_register_vars()
902 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
905 …if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
912 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in php_sapi_phpdbg_register_vars()
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c104 static void init_sapi_from_env(sapi_module_struct *sapi_module) in init_sapi_from_env() argument
109 sapi_module->php_ini_path_override = p; in init_sapi_from_env()
114 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
116 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup()
119 argv0 = sapi_module->executable_location; in php_lsapi_startup()
230 if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len)) { in add_variable()
1046 … %s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
1048 …uilt: %s %s)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/PHP-7.0/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()
347 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
349 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_main.c556 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
618 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
625 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
835 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
837 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1759 … %s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
1761 …uilt: %s %s)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-7.0/ext/session/
H A Dmod_mm.c276 int mod_name_len = strlen(sapi_module.name); in PHP_MINIT_FUNCTION()
302 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION()
/PHP-7.0/ext/opcache/
H A DZendAccelerator.c798 if (sapi_module.get_stat && in zend_get_file_handle_timestamp()
802 zend_stat_t *tmpbuf = sapi_module.get_stat(); in zend_get_file_handle_timestamp()
2468 if (sapi_module.name) { in accel_find_sapi()
2470 if (strcmp(sapi_module.name, *sapi_name) == 0) { in accel_find_sapi()
2475 strcmp(sapi_module.name, "cli") == 0 in accel_find_sapi()
2476 || strcmp(sapi_module.name, "phpdbg") == 0)) { in accel_find_sapi()
2739 (strcmp(sapi_module.name, "cli") == 0 ||
2740 strcmp(sapi_module.name, "cli-server") == 0 ||
2741 strcmp(sapi_module.name, "cgi-fcgi") == 0 ||
2742 strcmp(sapi_module.name, "fpm-fcgi") == 0)) {
[all …]
/PHP-7.0/sapi/cgi/
H A Dcgi_main.c608 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
691 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
700 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
916 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
918 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
2219 … %s) (DEBUG)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
2221 …uilt: %s %s)\nCopyright (c) 1997-2017 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-7.0/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()
/PHP-7.0/ext/libxml/
H A Dlibxml.c848 if (sapi_module.name) { in PHP_MINIT_FUNCTION()
857 if (strcmp(sapi_module.name, *sapi_name) == 0) { in PHP_MINIT_FUNCTION()

Completed in 209 milliseconds

12