Home
last modified time | relevance | path

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

12

/PHP-5.6/main/
H A DSAPI.c83 sapi_module = *sf; in sapi_startup()
255 if (!sapi_module.read_post) { in sapi_read_post_block()
284 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC()
436 if (sapi_module.activate) { in sapi_activate_headers_only()
495 if (sapi_module.activate) { in sapi_activate()
544 if (sapi_module.deactivate) { in sapi_deactivate()
890 if (sapi_module.send_headers) { in sapi_send_headers()
1001 if (sapi_module.flush) { in sapi_flush()
1011 if (sapi_module.get_stat) { in sapi_get_stat()
1027 if (sapi_module.getenv) { in sapi_getenv()
[all …]
H A Dphp_ini.c89 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
91 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
102 esc_html = !sapi_module.phpinfo_as_text; in php_ini_displayer_cb()
104 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer_cb()
129 if (!sapi_module.phpinfo_as_text) { in php_ini_displayer()
396 if (sapi_module.ini_defaults) { in php_init_config()
405 if (sapi_module.php_ini_path_override) { in php_init_config()
409 } else if (!sapi_module.php_ini_ignore) { in php_init_config()
484 if (!sapi_module.php_ini_ignore_cwd) { in php_init_config()
549 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config()
[all …]
H A Dphp_content_types.c68 sapi_module.sapi_error(E_WARNING, in SAPI_POST_READER_FUNC()
78 sapi_module.sapi_error(E_DEPRECATED, in SAPI_POST_READER_FUNC()
H A Drfc1867.c260 actual_read = sapi_module.read_post(buf, bytes_to_read TSRMLS_CC); in fill_buffer()
735 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
746 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
760 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");
932 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
997 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1017 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file");
1055 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno));
1060sapi_module.sapi_error(E_NOTICE, "Only %d bytes were written, expected to write %d", wlen, blen);
[all …]
H A DSAPI.h71 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.c287 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen TSRMLS_CC)) { in add_post_var()
478 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_TREAT_DATA_FUNC()
489 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_TREAT_DATA_FUNC()
638 if (sapi_module.register_server_variables) { in php_register_server_variables()
639 sapi_module.register_server_variables(array_ptr TSRMLS_CC); in php_register_server_variables()
727 sapi_module.treat_data(PARSE_GET, NULL, NULL TSRMLS_CC); in php_auto_globals_create_get()
753 sapi_module.treat_data(PARSE_POST, NULL, NULL TSRMLS_CC); in php_auto_globals_create_post()
776 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL TSRMLS_CC); in php_auto_globals_create_cookie()
H A Dmain.c273 if (sapi_module.executable_location) { in php_binary_init()
275 if (!strchr(sapi_module.executable_location, '/')) { in php_binary_init()
392 cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")); in PHP_INI_DISP()
730 if (sapi_module.log_message) { in php_log_err()
731 sapi_module.log_message(log_message TSRMLS_CC); in php_log_err()
1179 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")) && in php_error_cb()
2131 sapi_module = *sf; in php_module_startup()
2140 zuf.block_interruptions = sapi_module.block_interruptions; in php_module_startup()
2141 zuf.unblock_interruptions = sapi_module.unblock_interruptions; in php_module_startup()
2228 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup()
[all …]
/PHP-5.6/ext/standard/
H A Dinfo.c111 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()
133 if (!sapi_module.phpinfo_as_text) { in php_info_print_stream_hash()
150 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
166 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
208 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
229 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
264 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
906 if (!sapi_module.phpinfo_as_text) { in php_print_info()
956 if (sapi_module.pretty_name) { in php_print_info()
[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()
127 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { in php_print_credits()
H A Ddl.c73 if ((strncmp(sapi_module.name, "cgi", 3) != 0) && in PHP_FUNCTION()
74 (strcmp(sapi_module.name, "cli") != 0) && in PHP_FUNCTION()
75 (strncmp(sapi_module.name, "embed", 5) != 0) in PHP_FUNCTION()
H A Dphp_fopen_wrapper.c252 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
265 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
278 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
296 if (strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
/PHP-5.6/sapi/webjames/
H A Dwebjames.c269 static int php_webjames_startup(sapi_module_struct *sapi_module) in php_webjames_startup() argument
271 if(php_module_startup(sapi_module, &php_webjames_module, 1) == FAILURE) { in php_webjames_startup()
278 static sapi_module_struct sapi_module = { variable
319 sapi_startup(&sapi_module); in webjames_php_init()
320 sapi_module.startup(&sapi_module); in webjames_php_init()
328 sapi_module.shutdown(&sapi_module); in webjames_php_shutdown()
/PHP-5.6/sapi/cli/
H A Dphp_cli.c1318 sapi_module = &cli_server_sapi_module; in WinMain()
1327 sapi_module = &cli_sapi_module; in WinMain()
1338 sapi_module->phpinfo_as_text = 1; in WinMain()
1339 sapi_module->php_ini_ignore_cwd = 1; in WinMain()
1340 sapi_startup(sapi_module); in WinMain()
1343 sapi_module->php_ini_ignore = ini_ignore; in WinMain()
1345 sapi_module->executable_location = argv[0]; in WinMain()
1347 if (sapi_module == &cli_sapi_module) { in WinMain()
1359 sapi_module->ini_entries = ini_entries; in WinMain()
1362 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain()
[all …]
/PHP-5.6/sapi/aolserver/
H A Daolserver.c62 sapi_module_struct *sapi_module; member
281 php_ns_startup(sapi_module_struct *sapi_module) in php_ns_startup() argument
283 if (php_module_startup(sapi_module, &php_aolserver_module, 1) == FAILURE) { in php_ns_startup()
581 ctx->sapi_module->shutdown(ctx->sapi_module); in php_ns_server_shutdown()
603 sapi_module.startup(&aolserver_sapi_module); in Ns_ModuleInit()
610 ctx->sapi_module = &aolserver_sapi_module; in Ns_ModuleInit()
/PHP-5.6/sapi/embed/
H A Dphp_embed.c103 static int php_embed_startup(sapi_module_struct *sapi_module) in php_embed_startup() argument
105 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_embed_startup()
/PHP-5.6/sapi/phttpd/
H A Dphttpd.c44 php_phttpd_startup(sapi_module_struct *sapi_module) in php_phttpd_startup() argument
48 if (php_module_startup(sapi_module, NULL, 0)) { in php_phttpd_startup()
/PHP-5.6/sapi/continuity/
H A Dcapi.c352 static int php_capi_startup(sapi_module_struct *sapi_module);
389 static int php_capi_startup(sapi_module_struct *sapi_module) { in php_capi_startup() argument
390 if(php_module_startup(sapi_module,&continuity_module_entry,1)==FAILURE) { in php_capi_startup()
/PHP-5.6/sapi/litespeed/
H A Dlsapi_main.c103 static void init_sapi_from_env(sapi_module_struct *sapi_module) in init_sapi_from_env() argument
108 sapi_module->php_ini_path_override = p; in init_sapi_from_env()
113 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
115 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup()
118 argv0 = sapi_module->executable_location; in php_lsapi_startup()
240 …if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len TSRMLS_CC)) { in add_variable()
1282 … %s) (DEBUG)\nCopyright (c) 1997-2016 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
1284 …uilt: %s %s)\nCopyright (c) 1997-2016 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/PHP-5.6/sapi/apache2handler/
H A Dsapi_apache2.c279 …if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), (unsigned int *)&new_val_len TS… in php_apache_sapi_register_variables()
284 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), (unsigne… in php_apache_sapi_register_variables()
346 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
348 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
/PHP-5.6/sapi/caudium/
H A Dcaudium.c524 static int php_caudium_startup(sapi_module_struct *sapi_module) in php_caudium_startup() argument
526 if (php_module_startup(sapi_module, &php_caudium_module, 1)==FAILURE) { in php_caudium_startup()
765 sapi_module.startup(&caudium_sapi_module); in pike_module_init()
781 sapi_module.shutdown(&caudium_sapi_module); in pike_module_exit()
/PHP-5.6/sapi/apache2filter/
H A Dsapi_apache2.c239 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len TSRMLS_CC)) { in php_apache_sapi_register_variables()
245 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val… in php_apache_sapi_register_variables()
322 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
324 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
/PHP-5.6/sapi/fpm/fpm/
H A Dfpm_main.c614 if (sapi_module.input_filter(filter_arg, var, val, strlen(*val), &new_val_len TSRMLS_CC)) { in cgi_php_import_environment_variables()
648 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRM… in sapi_cgi_register_variables()
655 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRM… in sapi_cgi_register_variables()
863 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
865 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1780 … %s) (DEBUG)\nCopyright (c) 1997-2016 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
1782 …uilt: %s %s)\nCopyright (c) 1997-2016 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-5.6/sapi/tux/
H A Dphp_tux.c256 static int php_tux_startup(sapi_module_struct *sapi_module) in php_tux_startup() argument
258 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_tux_startup()
/PHP-5.6/sapi/apache/
H A Dmod_php5.c273 if (sapi_module.input_filter(PARSE_SERVER, elts[i].key, &val, val_len, &new_val_len TSRMLS_CC)) { in sapi_apache_register_server_variables()
290 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &((request_rec *) SG(server_context))->uri,… in sapi_apache_register_server_variables()
298 static int php_apache_startup(sapi_module_struct *sapi_module) in php_apache_startup() argument
300 if (php_module_startup(sapi_module, &apache_module_entry, 1) == FAILURE) { in php_apache_startup()
/PHP-5.6/sapi/milter/
H A Dphp_milter.c891 static int php_milter_startup(sapi_module_struct *sapi_module) in php_milter_startup() argument
893 if (php_module_startup(sapi_module, &php_milter_module, 1) == FAILURE) { in php_milter_startup()
1041 sapi_module.startup(&milter_sapi_module); in main()
1116 …uilt: %s %s)\nCopyright (c) 1997-2016 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()

Completed in 93 milliseconds

12