Browse Source

Use sapi_module_struct to contain SAPI module name

PHP-4.0.5
Sascha Schumann 26 years ago
parent
commit
ed0a307ccd
  1. 3
      ext/standard/info.c
  2. 2
      sapi/aolserver/aolserver.c
  3. 2
      sapi/apache/mod_php4.c
  4. 2
      sapi/cgi/cgi_main.c
  5. 2
      sapi/isapi/php4isapi.c
  6. 2
      sapi/roxen/roxen.c
  7. 2
      sapi/servlet/servlet.c
  8. 2
      sapi/thttpd/thttpd.c

3
ext/standard/info.c

@ -100,7 +100,8 @@ PHPAPI void php_print_info(int flag)
#endif
php_printf("php.ini path: %s<br>\n", CONFIGURATION_FILE_PATH);
php_printf("ZEND_DEBUG=%d<br>\n", ZEND_DEBUG);
/*php_printf("SAPI=" PHP_SAPI "<br>\n");*/
if (sapi_module.name)
php_printf("SAPI=%s<br>\n", sapi_module.name);
#ifdef ZTS
php_printf("ZTS is defined");
#else

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

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

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

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

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

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

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

Loading…
Cancel
Save