]> granicus.if.org Git - php/commitdiff
Separate plain name returned by php_sapi_module() and pretty name
authorAndrei Zmievski <andrei@php.net>
Mon, 26 Jun 2000 18:05:55 +0000 (18:05 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 26 Jun 2000 18:05:55 +0000 (18:05 +0000)
used for output.

12 files changed:
ext/standard/info.c
main/SAPI.h
sapi/aolserver/aolserver.c
sapi/apache/mod_php4.c
sapi/cgi/cgi_main.c
sapi/isapi/php4isapi.c
sapi/nsapi/nsapi.c
sapi/phttpd/phttpd.c
sapi/pi3web/pi3web_sapi.c
sapi/roxen/roxen.c
sapi/servlet/servlet.c
sapi/thttpd/thttpd.c

index e2295b8534f08a028c4dc3e15ee9860d54897d09..b5de1b3c9ed5b1b50ff6d7709fb415eaf9378c33 100644 (file)
@@ -179,8 +179,8 @@ PHPAPI void php_print_info(int flag)
 #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
index e7bf31fc2d51fb62bbecb90772bfdc61932a5a17..5ed4fdb67d2a96319b68e429fb225d92515082b2 100644 (file)
@@ -148,6 +148,7 @@ SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len SLS_DC);
 
 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);
index 6effcda8e9b24d38076687c006f8fe3c22333636..0374893a314d4c3025535793cc3963712de49e11 100644 (file)
@@ -290,6 +290,7 @@ php_ns_startup(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 */
index ab21ee77f8c2ce0cf4a2373d9b5899efb0d903da..514c11e05b0a6f827f8293ecfde78c453fd2840a 100644 (file)
@@ -332,7 +332,8 @@ static char *php_apache_getenv(char *name, int name_len SLS_DC)
 
 
 static sapi_module_struct sapi_module = {
-       "Apache",                                               /* name */
+       "apache",                                               /* name */
+       "Apache",                                               /* pretty name */
                                                                        
        php_apache_startup,                             /* startup */
        php_module_shutdown_wrapper,    /* shutdown */
index 9807cafcf3419418d88736ce889312fd2576b1be..f3b91f0ffe64ee1b4a3012937038f699f02811e9 100644 (file)
@@ -199,7 +199,8 @@ static int sapi_cgi_deactivate(SLS_D)
 
 
 static sapi_module_struct sapi_module = {
-       "CGI",                                                  /* name */
+       "cgi",                                                  /* name */
+       "CGI",                                                  /* pretty name */
                                                                        
        php_module_startup,                             /* startup */
        php_module_shutdown_wrapper,    /* shutdown */
index 4b6d22bc4aeb5310b2bfeb9db932b8a326303c96..949e96bc0091f51a02f12f3b75c9394a60af51a6 100644 (file)
@@ -383,7 +383,8 @@ static void sapi_isapi_register_server_variables(zval *track_vars_array ELS_DC S
 
 
 static sapi_module_struct sapi_module = {
-       "ISAPI",                                                /* name */
+       "isapi",                                                /* name */
+       "ISAPI",                                                /* pretty name */
                                                                        
        php_isapi_startup,                              /* startup */
        php_module_shutdown_wrapper,    /* shutdown */
@@ -419,7 +420,7 @@ BOOL WINAPI GetFilterVersion(PHTTP_FILTER_VERSION pFilterVersion)
 {
        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;
 }
index 6b4bf1a6a788c6eb192ac781328ddca2750f5d3b..4e664b6559c72ca62a568d5cae5ca1f38776c11a 100644 (file)
@@ -322,7 +322,8 @@ sapi_nsapi_register_server_variables(zval *track_vars_array ELS_DC SLS_DC PLS_DC
 }
 
 static sapi_module_struct sapi_module = {
-       "NSAPI",                                /* name */
+       "nsapi",                                /* name */
+       "NSAPI",                                /* pretty name */
 
        php_module_startup,                     /* startup */
        php_module_shutdown_wrapper,            /* shutdown */
index ee3fb977e615afdb1912c59b1599fe33e8ac4e20..9f2eda9c1661ed8624dfe8ef859e148bf4f60553 100644 (file)
@@ -162,6 +162,7 @@ php_phttpd_sapi_read_post(char *buf, uint count_bytes SLS_DC)
 }
 
 static sapi_module_struct sapi_module = {
+    "phttpd",
     "PHTTPD",
  
     php_phttpd_startup,                     /* startup */
index 7c7bc3d3fee30bbb48c502bf43f5846822f07e40..b8f515d452bd4a96fca919f9dfbba2771b9ec597 100644 (file)
@@ -283,7 +283,8 @@ static char *sapi_pi3web_read_cookies(SLS_D)
 
 
 static sapi_module_struct sapi_module = {
-       "PI3WEB",                               /* name */
+       "pi3web",                               /* name */
+       "PI3WEB",                               /* pretty name */
 
        php_pi3web_startup,                     /* startup */
        php_module_shutdown_wrapper,            /* shutdown */
index 13aca14dbc4105563f6d4fd7e1f711d359f8c76b..82c93664bb37eb02bb43d2cf3de601789c505d0f 100644 (file)
@@ -491,6 +491,7 @@ static int php_roxen_startup(sapi_module_struct *sapi_module)
 /* 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 */
index c56566cfd922ded0d398c4fed16172f85d9e017a..b3a8e0f02fc0bf715468e4b1dfb08cea0a9870cf 100644 (file)
@@ -217,7 +217,8 @@ static char *sapi_servlet_read_cookies(SLS_D)
  */
 
 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 */
index 4692db29ae43a9fc8ebc5724542de56e3c10b591..a9fe305b03b404fc383b6cdc1f4dfb394fb42e36 100644 (file)
@@ -103,6 +103,7 @@ static char *sapi_thttpd_read_cookies(SLS_D)
 
 static sapi_module_struct sapi_module = {
        "thttpd",
+       "thttpd",
        
        php_module_startup,
        php_module_shutdown_wrapper,