used for output.
#ifdef CONFIGURE_COMMAND
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
#endif
- if (sapi_module.name) {
- php_info_print_table_row(2, "Server API", sapi_module.name );
+ if (sapi_module.pretty_name) {
+ php_info_print_table_row(2, "Server API", sapi_module.pretty_name );
}
#ifdef VIRTUAL_DIR
struct _sapi_module_struct {
char *name;
+ char *pretty_name;
int (*startup)(struct _sapi_module_struct *sapi_module);
int (*shutdown)(struct _sapi_module_struct *sapi_module);
/* this structure is static (as in "it does not change") */
static sapi_module_struct sapi_module = {
+ "aolserver",
"AOLserver",
php_ns_startup, /* startup */
static sapi_module_struct sapi_module = {
- "Apache", /* name */
+ "apache", /* name */
+ "Apache", /* pretty name */
php_apache_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
static sapi_module_struct sapi_module = {
- "CGI", /* name */
+ "cgi", /* name */
+ "CGI", /* pretty name */
php_module_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
static sapi_module_struct sapi_module = {
- "ISAPI", /* name */
+ "isapi", /* name */
+ "ISAPI", /* pretty name */
php_isapi_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
{
bFilterLoaded = 1;
pFilterVersion->dwFilterVersion = HTTP_FILTER_REVISION;
- strcpy(pFilterVersion->lpszFilterDesc, sapi_module.name);
+ strcpy(pFilterVersion->lpszFilterDesc, sapi_module.pretty_name);
pFilterVersion->dwFlags= (SF_NOTIFY_AUTHENTICATION | SF_NOTIFY_PREPROC_HEADERS);
return TRUE;
}
}
static sapi_module_struct sapi_module = {
- "NSAPI", /* name */
+ "nsapi", /* name */
+ "NSAPI", /* pretty name */
php_module_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
}
static sapi_module_struct sapi_module = {
+ "phttpd",
"PHTTPD",
php_phttpd_startup, /* startup */
static sapi_module_struct sapi_module = {
- "PI3WEB", /* name */
+ "pi3web", /* name */
+ "PI3WEB", /* pretty name */
php_pi3web_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
/* this structure is static (as in "it does not change") */
static sapi_module_struct sapi_module = {
+ "roxen",
"Roxen",
php_module_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
*/
static sapi_module_struct sapi_module = {
- "Java Servlet", /* name */
+ "java_servlet", /* name */
+ "Java Servlet", /* pretty name */
php_module_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
static sapi_module_struct sapi_module = {
"thttpd",
+ "thttpd",
php_module_startup,
php_module_shutdown_wrapper,