Home
last modified time | relevance | path

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

12

/PHP-5.3/main/
H A DSAPI.c77 sapi_module = *sf; in sapi_startup()
325 if (sapi_module.activate) { in sapi_activate_headers_only()
326 sapi_module.activate(TSRMLS_C); in sapi_activate_headers_only()
394 if (sapi_module.activate) { in sapi_activate()
418 if(sapi_module.read_post) { in sapi_deactivate()
446 if (sapi_module.deactivate) { in sapi_deactivate()
840 if (sapi_module.send_headers) { in sapi_send_headers()
954 if (sapi_module.flush) { in sapi_flush()
964 if (sapi_module.get_stat) { in sapi_get_stat()
976 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()
380 if (sapi_module.ini_defaults) { in php_init_config()
390 if (sapi_module.php_ini_path_override) { in php_init_config()
394 } else if (!sapi_module.php_ini_ignore) { in php_init_config()
481 if (sapi_module.executable_location) { in php_init_config()
572 if (!sapi_module.php_ini_ignore || sapi_module.php_ini_path_override) { in php_init_config()
[all …]
H A Drfc1867.c327 actual_read = sapi_module.read_post(buf, bytes_to_read TSRMLS_CC); in fill_buffer()
804 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
815 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
829 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
980 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
985 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
1050 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1070 sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file");
1108 sapi_module.sapi_error(E_NOTICE, "write() failed - %s", strerror(errno));
1113sapi_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 */
218 int (*startup)(struct _sapi_module_struct *sapi_module);
219 int (*shutdown)(struct _sapi_module_struct *sapi_module);
H A Dphp_variables.c284 if (sapi_module.input_filter(PARSE_POST, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_POST_HANDLER_FUNC()
414 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_TREAT_DATA_FUNC()
425 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len TSRMLS_CC)) { in SAPI_TREAT_DATA_FUNC()
606 if (sapi_module.register_server_variables) { in php_register_server_variables()
607 sapi_module.register_server_variables(array_ptr TSRMLS_CC); in php_register_server_variables()
712 sapi_module.treat_data(PARSE_POST, NULL, NULL TSRMLS_CC); /* POST Data */ in php_hash_environment()
722 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL TSRMLS_CC); /* Cookie Data */ in php_hash_environment()
732 sapi_module.treat_data(PARSE_GET, NULL, NULL TSRMLS_CC); /* GET Data */ in php_hash_environment()
H A Dmain.c336 cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")); in PHP_INI_DISP()
627 if (sapi_module.log_message) { in php_log_err()
628 sapi_module.log_message(log_message); in php_log_err()
1060 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi")) && in php_error_cb()
1878 sapi_module = *sf; in php_module_startup()
1887 zuf.block_interruptions = sapi_module.block_interruptions; in php_module_startup()
1888 zuf.unblock_interruptions = sapi_module.unblock_interruptions; in php_module_startup()
1973 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_SAPI", sapi_module.name, strlen(sapi_module.name), CONST_PERSI… in php_module_startup()
2080 if (sapi_module.additional_functions) { in php_module_startup()
2083 …zend_register_functions(NULL, sapi_module.additional_functions, NULL, MODULE_PERSISTENT TSRMLS_CC); in php_module_startup()
/PHP-5.3/ext/standard/
H A Dinfo.c95 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
111 if (!sapi_module.phpinfo_as_text) { in php_info_print_module()
153 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
175 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
213 if (!sapi_module.phpinfo_as_text) { in php_print_gpcse_array()
661 if (!sapi_module.phpinfo_as_text) { in php_print_info()
711 if (sapi_module.pretty_name) { in php_print_info()
894 if (sapi_module.phpinfo_as_text) { in php_print_info()
1030 if (!sapi_module.phpinfo_as_text) { in php_print_info()
1039 if (!sapi_module.phpinfo_as_text) { in php_info_print_table_start()
[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()
126 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.c76 if ((strncmp(sapi_module.name, "cgi", 3) != 0) && in PHP_FUNCTION()
77 (strcmp(sapi_module.name, "cli") != 0) && in PHP_FUNCTION()
78 (strncmp(sapi_module.name, "embed", 5) != 0) in PHP_FUNCTION()
/PHP-5.3/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.3/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.3/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.3/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.3/sapi/cli/
H A Dphp_cli.c332 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
335 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
340 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &script_filename, len, &len TSRMLS_C… in sapi_cli_register_variables()
343 …if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &script_filename, len, &len TSRMLS_C… in sapi_cli_register_variables()
348 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
396 static int php_cli_startup(sapi_module_struct *sapi_module) /* {{{ */ in php_cli_startup() argument
398 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_cli_startup()
830 PHP_VERSION, sapi_module.name, __DATE__, __TIME__, in WinMain()
/PHP-5.3/sapi/continuity/
H A Dcapi.c353 static int php_capi_startup(sapi_module_struct *sapi_module);
390 static int php_capi_startup(sapi_module_struct *sapi_module) { in php_capi_startup() argument
391 if(php_module_startup(sapi_module,&continuity_module_entry,1)==FAILURE) { in php_capi_startup()
/PHP-5.3/sapi/litespeed/
H A Dlsapi_main.c92 static int php_lsapi_startup(sapi_module_struct *sapi_module) in php_lsapi_startup() argument
94 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_lsapi_startup()
97 argv0 = sapi_module->executable_location; in php_lsapi_startup()
722 … %s) (DEBUG)\nCopyright (c) 1997-2014 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
724 …uilt: %s %s)\nCopyright (c) 1997-2014 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in cli_main()
/PHP-5.3/sapi/apache2handler/
H A Dsapi_apache2.c279 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len TSRMLS_CC)) { in php_apache_sapi_register_variables()
284 …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-5.3/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.3/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()
320 static int php_apache2_startup(sapi_module_struct *sapi_module) in php_apache2_startup() argument
322 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) { in php_apache2_startup()
/PHP-5.3/sapi/fpm/fpm/
H A Dfpm_main.c611 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()
859 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
861 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1724 … %s) (DEBUG)\nCopyright (c) 1997-2014 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
1726 …uilt: %s %s)\nCopyright (c) 1997-2014 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,…
/PHP-5.3/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.3/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()
293 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &((request_rec *) SG(server_context))->uri,… in sapi_apache_register_server_variables()
301 static int php_apache_startup(sapi_module_struct *sapi_module) in php_apache_startup() argument
303 if (php_module_startup(sapi_module, &apache_module_entry, 1) == FAILURE) { in php_apache_startup()
/PHP-5.3/sapi/milter/
H A Dphp_milter.c887 static int php_milter_startup(sapi_module_struct *sapi_module) in php_milter_startup() argument
889 if (php_module_startup(sapi_module, &php_milter_module, 1) == FAILURE) { in php_milter_startup()
1037 sapi_module.startup(&milter_sapi_module); in main()
1114 …uilt: %s %s)\nCopyright (c) 1997-2014 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__,… in main()
/PHP-5.3/ext/session/
H A Dmod_mm.c263 int mod_name_len = strlen(sapi_module.name); in PHP_MINIT_FUNCTION()
287 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len); in PHP_MINIT_FUNCTION()

Completed in 107 milliseconds

12