From: Sascha Schumann Date: Mon, 20 Dec 1999 23:09:54 +0000 (+0000) Subject: Use sapi_module_struct to contain SAPI module name X-Git-Tag: PRE_ISSET_TYPE~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed0a307ccd239eaf9d633c52765c848c404a515a;p=php Use sapi_module_struct to contain SAPI module name --- diff --git a/ext/standard/info.c b/ext/standard/info.c index c9ddbcb479..69a9d2791c 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -100,7 +100,8 @@ PHPAPI void php_print_info(int flag) #endif php_printf("php.ini path: %s
\n", CONFIGURATION_FILE_PATH); php_printf("ZEND_DEBUG=%d
\n", ZEND_DEBUG); - /*php_printf("SAPI=" PHP_SAPI "
\n");*/ + if (sapi_module.name) + php_printf("SAPI=%s
\n", sapi_module.name); #ifdef ZTS php_printf("ZTS is defined"); #else diff --git a/sapi/aolserver/aolserver.c b/sapi/aolserver/aolserver.c index 0575799b8d..2814e9e046 100644 --- a/sapi/aolserver/aolserver.c +++ b/sapi/aolserver/aolserver.c @@ -291,7 +291,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 = { - "PHP Language", + "AOLserver", php_ns_startup, /* startup */ php_module_shutdown_wrapper, /* shutdown */ diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 39ec001428..1d54931e5e 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -212,7 +212,7 @@ int sapi_apache_send_headers(sapi_headers_struct *sapi_headers SLS_DC) sapi_module_struct sapi_module = { - "PHP Language", /* name */ + "Apache", /* name */ php_module_startup, /* startup */ php_module_shutdown_wrapper, /* shutdown */ diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index f117a4f99b..99ba4858b7 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -121,7 +121,7 @@ static char *sapi_cgi_read_cookies(SLS_D) static sapi_module_struct sapi_module = { - "PHP Language", /* name */ + "CGI", /* name */ php_module_startup, /* startup */ php_module_shutdown_wrapper, /* shutdown */ diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index 1fbb41382e..83416f3ffb 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -291,7 +291,7 @@ static char *sapi_isapi_read_cookies(SLS_D) static sapi_module_struct sapi_module = { - "PHP Language", /* name */ + "ISAPI", /* name */ php_isapi_startup, /* startup */ php_module_shutdown_wrapper, /* shutdown */ diff --git a/sapi/roxen/roxen.c b/sapi/roxen/roxen.c index 1ec54f3138..2903d14dde 100644 --- a/sapi/roxen/roxen.c +++ b/sapi/roxen/roxen.c @@ -505,7 +505,7 @@ static int php_roxen_startup(sapi_module_struct *sapi_module) void pike_module_exit(void); static sapi_module_struct sapi_module = { - "PHP Language", + "Roxen", php_module_startup, /* startup */ pike_module_exit, /* shutdown */ diff --git a/sapi/servlet/servlet.c b/sapi/servlet/servlet.c index 4b7ac7b307..5c7e03e795 100644 --- a/sapi/servlet/servlet.c +++ b/sapi/servlet/servlet.c @@ -210,7 +210,7 @@ static char *sapi_servlet_read_cookies(SLS_D) */ static sapi_module_struct sapi_module = { - "PHP Language", /* name */ + "Java Servlet", /* name */ php_module_startup, /* startup */ php_module_shutdown_wrapper, /* shutdown */ diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index c3ac2c5e7f..b62fa2a965 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -102,7 +102,7 @@ static char *sapi_thttpd_read_cookies(SLS_D) } static sapi_module_struct sapi_module = { - "PHP Language", + "thttpd", php_module_startup, php_module_shutdown_wrapper,