Home
last modified time | relevance | path

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

12

/PHP-5.5/main/
H A DSAPI.c83 sapi_module = *sf; in sapi_startup()
416 if (sapi_module.activate) { in sapi_activate_headers_only()
417 sapi_module.activate(TSRMLS_C); in sapi_activate_headers_only()
483 if (sapi_module.activate) { in sapi_activate()
507 if(sapi_module.read_post) { in sapi_deactivate()
535 if (sapi_module.deactivate) { in sapi_deactivate()
881 if (sapi_module.send_headers) { in sapi_send_headers()
992 if (sapi_module.flush) { in sapi_flush()
1002 if (sapi_module.get_stat) { in sapi_get_stat()
1018 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 Drfc1867.c255 actual_read = sapi_module.read_post(buf, bytes_to_read TSRMLS_CC); in fill_buffer()
729 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
740 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
754 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
917 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
922 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
987 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1007 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file");
1045 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno));
1050sapi_module.sapi_error(E_NOTICE, "Only %d bytes were written, expected to write %d", wlen, blen);
[all …]
H A DSAPI.h70 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 Dphp_variables.c259 if (sapi_module.input_filter(PARSE_POST, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_POST_HANDLER_FUNC()
389 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_TREAT_DATA_FUNC()
400 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_TREAT_DATA_FUNC()
549 if (sapi_module.register_server_variables) { in php_register_server_variables()
550 sapi_module.register_server_variables(array_ptr TSRMLS_CC); in php_register_server_variables()
638 sapi_module.treat_data(PARSE_GET, NULL, NULL TSRMLS_CC); in php_auto_globals_create_get()
665 sapi_module.treat_data(PARSE_POST, NULL, NULL TSRMLS_CC); in php_auto_globals_create_post()
688 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()
660 if (sapi_module.log_message) { in php_log_err()
661 sapi_module.log_message(log_message TSRMLS_CC); in php_log_err()
1096 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")) && in php_error_cb()
2042 sapi_module = *sf; in php_module_startup()
2051 zuf.block_interruptions = sapi_module.block_interruptions; in php_module_startup()
2052 zuf.unblock_interruptions = sapi_module.unblock_interruptions; in php_module_startup()
2139 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup()
[all …]
/PHP-5.5/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 Dphp_fopen_wrapper.c88 } else if (sapi_module.read_post) { in php_stream_input_read()
89 read_bytes = sapi_module.read_post(buf, count TSRMLS_CC); in php_stream_input_read()
222 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
235 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
248 if (!strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
266 if (strcmp(sapi_module.name, "cli")) { in php_stream_url_wrap_php()
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()
/PHP-5.5/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.5/sapi/cli/
H A Dphp_cli.c1314 sapi_module = &cli_server_sapi_module; in WinMain()
1323 sapi_module = &cli_sapi_module; in WinMain()
1334 sapi_module->phpinfo_as_text = 1; in WinMain()
1335 sapi_module->php_ini_ignore_cwd = 1; in WinMain()
1336 sapi_startup(sapi_module); in WinMain()
1339 sapi_module->php_ini_ignore = ini_ignore; in WinMain()
1341 sapi_module->executable_location = argv[0]; in WinMain()
1343 if (sapi_module == &cli_sapi_module) { in WinMain()
1355 sapi_module->ini_entries = ini_entries; in WinMain()
1358 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain()
[all …]
/PHP-5.5/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.5/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.5/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.5/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.5/sapi/litespeed/
H A Dlsapi_main.c91 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
93 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup()
96 argv0 = sapi_module->executable_location; in php_lsapi_startup()
212 …if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len TSRMLS_CC)) { in add_variable()
843 … %s) (DEBUG)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
845 …uilt: %s %s)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/PHP-5.5/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.5/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.5/sapi/apache2filter/
H A Dsapi_apache2.c236 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len TSRMLS_CC)) { in php_apache_sapi_register_variables()
242 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val… in php_apache_sapi_register_variables()
319 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
321 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_main.c609 if (sapi_module.input_filter(filter_arg, var, val, strlen(*val), &new_val_len TSRMLS_CC)) { in cgi_php_import_environment_variables()
643 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRM… in sapi_cgi_register_variables()
650 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRM… in sapi_cgi_register_variables()
858 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
860 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1744 … %s) (DEBUG)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
1746 …uilt: %s %s)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-5.5/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.5/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.5/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-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
/PHP-5.5/sapi/pi3web/
H A Dpi3web_sapi.c202 static int php_pi3web_startup(sapi_module_struct *sapi_module) in php_pi3web_startup() argument
204 if (php_module_startup(sapi_module, &php_pi3web_module, 1)==FAILURE) { in php_pi3web_startup()

Completed in 130 milliseconds

12