From: Sascha Schumann Date: Mon, 20 Dec 1999 07:12:27 +0000 (+0000) Subject: Add information about chosen SAPI module to phpinfo() X-Git-Tag: PRE_ISSET_TYPE~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d70a91b6d7034a729bfc48f52b4955439b26a64;p=php Add information about chosen SAPI module to phpinfo() --- diff --git a/build-defs.h.in b/build-defs.h.in index fd9f697597..dc4ba19016 100644 --- a/build-defs.h.in +++ b/build-defs.h.in @@ -74,6 +74,7 @@ #define PHP_PGSQL_LIBS "" #define PHP_PROG_SENDMAIL "@PROG_SENDMAIL@" #define PHP_REGEX_LIB "" +#define PHP_SAPI "@PHP_SAPI@" #define PHP_SOLID_INCLUDE "" #define PHP_SOLID_LIBS "" #define PHP_EMPRESS_INCLUDE "" diff --git a/ext/standard/info.c b/ext/standard/info.c index fcc350756b..6dcf0450eb 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -100,6 +100,7 @@ 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"); #ifdef ZTS php_printf("ZTS is defined"); #else @@ -313,6 +314,7 @@ void php_print_credits(int flag) CREDIT_LINE("AOLserver SAPI Module", "Sascha Schumann"); CREDIT_LINE("Servlet SAPI Module", "Sam Ruby"); CREDIT_LINE("Roxen SAPI Module", "David Hedbor"); + CREDIT_LINE("thttpd SAPI Module", "Sascha Schumann"); CREDIT_LINE("Overall Work", "Thies C. Arntzen, Stig Bakken, Shane Caraveo, \ Rasmus Lerdorf, Sascha Schumann, Zeev Suraski, Andrei Zmievski, \ and others");