Home
last modified time | relevance | path

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

12

/PHP-7.4/main/
H A DSAPI.c75 sapi_module = *sf; in sapi_startup()
238 if (!sapi_module.read_post) { in sapi_read_post_block()
267 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC()
419 if (sapi_module.activate) { in sapi_activate_headers_only()
420 sapi_module.activate(); in sapi_activate_headers_only()
477 if (sapi_module.activate) { in sapi_activate()
478 sapi_module.activate(); in sapi_activate()
526 sapi_module.deactivate(); in sapi_deactivate()
999 if (sapi_module.flush) { in sapi_flush()
1025 if (sapi_module.getenv) { in sapi_getenv()
[all …]
H A Dphp_ini.c85 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
87 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
98 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
100 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
141 if (!sapi_module.phpinfo_as_text) { in display_ini_entries()
428 if (sapi_module.ini_defaults) { in php_init_config()
437 if (sapi_module.php_ini_path_override) { in php_init_config()
441 } else if (!sapi_module.php_ini_ignore) { in php_init_config()
516 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config()
582 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config()
[all …]
H A Drfc1867.c261 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer()
733 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
744 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
758 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
925 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
930 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
995 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1015 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file");
1057 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno));
1062sapi_module.sapi_error(E_NOTICE, "Only %zd bytes were written, expected to write %zd", wlen, blen);
[all …]
H A DSAPI.h68 extern SAPI_API sapi_module_struct sapi_module; /* true global */
222 int (*startup)(struct _sapi_module_struct *sapi_module);
223 int (*shutdown)(struct _sapi_module_struct *sapi_module);
H A Dphp_variables.c339 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) { in add_post_var()
534 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) { in SAPI_TREAT_DATA_FUNC()
699 if (sapi_module.register_server_variables) { in php_register_server_variables()
700 sapi_module.register_server_variables(arr); in php_register_server_variables()
775 sapi_module.treat_data(PARSE_GET, NULL, NULL); in php_auto_globals_create_get()
794 sapi_module.treat_data(PARSE_POST, NULL, NULL); in php_auto_globals_create_post()
809 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL); in php_auto_globals_create_cookie()
H A Dmain.c433 if (sapi_module.executable_location) { in php_binary_init()
435 if (binary_location && !strchr(sapi_module.executable_location, '/')) { in php_binary_init()
448 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location); in php_binary_init()
558 …cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi… in PHP_INI_DISP()
943 if (sapi_module.log_message) { in php_log_err_with_severity()
944 sapi_module.log_message(log_message, syslog_type_int); in php_log_err_with_severity()
1407 …if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.n… in php_error_cb()
2191 sapi_module = *sf; in php_module_startup()
2269 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup()
2393 if (sapi_module.additional_functions) { in php_module_startup()
[all …]
/PHP-7.4/ext/standard/
H A Dinfo.c99 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()
181 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
200 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
232 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
767 if (!sapi_module.phpinfo_as_text) { in php_print_info()
817 if (sapi_module.pretty_name) { in php_print_info()
1319 if (sapi_module.name) { in PHP_FUNCTION()
[all …]
H A Dcredits.c28 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 Dphp_fopen_wrapper.c247 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.4/sapi/cli/
H A Dphp_cli.c1279 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.c503 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ in sapi_cli_server_startup() argument
507 if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) { in sapi_cli_server_startup()
661 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) { in sapi_cli_server_register_variable()
2288 send_header_func = sapi_module.send_headers; in php_cli_server_dispatch()
2292 sapi_module.send_headers = sapi_cli_server_discard_headers; in php_cli_server_dispatch()
2294 sapi_module.send_headers = send_header_func; in php_cli_server_dispatch()
2744 sapi_module.phpinfo_as_text = 0; in do_cli_server()
/PHP-7.4/win32/
H A Dconsole.c116 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_console_is_cli_sapi()
/PHP-7.4/sapi/embed/
H A Dphp_embed.c106 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.4/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()
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c954 if (sapi_module.get_stat && in zend_get_file_handle_timestamp()
2557 if (sapi_module.name) { in accel_find_sapi()
2564 strcmp(sapi_module.name, "cli") == 0 in accel_find_sapi()
4792 sapi_module.activate = NULL; in accel_finish_startup()
4793 sapi_module.deactivate = NULL; in accel_finish_startup()
4798 sapi_module.getenv = NULL; in accel_finish_startup()
4800 sapi_module.flush = preload_flush; in accel_finish_startup()
4867 sapi_module.activate = orig_activate; in accel_finish_startup()
4873 sapi_module.getenv = orig_getenv; in accel_finish_startup()
4874 sapi_module.ub_write = orig_ub_write; in accel_finish_startup()
[all …]
H A Dshared_alloc_win32.c80 p += strlcpy(p, sapi_module.name, 21); in create_name_with_username()
/PHP-7.4/sapi/litespeed/
H A Dlsapi_main.c89 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()
99 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
101 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup()
104 argv0 = sapi_module->executable_location; in php_lsapi_startup()
214 if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len)) { in add_variable()
1291 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
1293 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/PHP-7.4/sapi/apache2handler/
H A Dsapi_apache2.c268 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.4/sapi/fpm/fpm/
H A Dfpm_main.c516 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
578 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
585 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
774 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ in php_cgi_startup() argument
776 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) { in php_cgi_startup()
1721 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
1723 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
/PHP-7.4/ext/session/
H A Dmod_mm.c272 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.4/sapi/cgi/
H A Dcgi_main.c662 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) { in cgi_php_load_env_var()
742 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
751 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
972 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
974 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
2404 …(built: %s %s) (DEBUG)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
2406 …%s (%s) (built: %s %s)\nCopyright (c) The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-7.4/ext/readline/
H A Dreadline_cli.c715 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
/PHP-7.4/ext/mbstring/
H A Dmb_gpc.c323 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len)) { in _php_mb_encoding_handler_ex()

Completed in 104 milliseconds

12