Browse Source

Separate plain name returned by php_sapi_module() and pretty name

used for output.
PHP-4.0.5
Andrei Zmievski 26 years ago
parent
commit
4010b422dd
  1. 4
      ext/standard/info.c
  2. 1
      main/SAPI.h
  3. 1
      sapi/aolserver/aolserver.c
  4. 3
      sapi/apache/mod_php4.c
  5. 3
      sapi/cgi/cgi_main.c
  6. 5
      sapi/isapi/php4isapi.c
  7. 3
      sapi/nsapi/nsapi.c
  8. 1
      sapi/phttpd/phttpd.c
  9. 3
      sapi/pi3web/pi3web_sapi.c
  10. 1
      sapi/roxen/roxen.c
  11. 3
      sapi/servlet/servlet.c
  12. 1
      sapi/thttpd/thttpd.c

4
ext/standard/info.c

@ -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

1
main/SAPI.h

@ -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);

1
sapi/aolserver/aolserver.c

@ -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 */

3
sapi/apache/mod_php4.c

@ -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 */

3
sapi/cgi/cgi_main.c

@ -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 */

5
sapi/isapi/php4isapi.c

@ -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;
}

3
sapi/nsapi/nsapi.c

@ -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 */

1
sapi/phttpd/phttpd.c

@ -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 */

3
sapi/pi3web/pi3web_sapi.c

@ -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 */

1
sapi/roxen/roxen.c

@ -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 */

3
sapi/servlet/servlet.c

@ -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 */

1
sapi/thttpd/thttpd.c

@ -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,

Loading…
Cancel
Save