mirror of
https://github.com/php/php-src.git
synced 2024-12-26 02:10:46 +08:00
- Add compiler informations on Windows (will add more info later, like x86 or x64 and makes it available in userland)
This commit is contained in:
parent
4be7f4aecd
commit
d3bff02b63
@ -50,6 +50,19 @@ ZEND_EXTERN_MODULE_GLOBALS(iconv)
|
||||
|
||||
#include <unicode/uversion.h>
|
||||
|
||||
|
||||
f _MSC_VER >= 1500
|
||||
# define PHP_WINAPI_COMPILER "MSVC9 (2008)"
|
||||
#elif _MSC_VER >= 1400
|
||||
# define PHP_WINAPI_COMPILER "MSVC8 (2005)"
|
||||
#elif _MSC_VER >= 1310
|
||||
# define PHP_WINAPI_COMPILER "MSVC7.1 (.NET 2003)"
|
||||
#elif _MSC_VER >= 1300
|
||||
# define PHP_WINAPI_COMPILER "MSVC7 (.NET 2002)"
|
||||
#elif _MSC_VER < 1300
|
||||
# define PHP_WINAPI_COMPILER "MSVC6 "
|
||||
#endif
|
||||
|
||||
#define SECTION(name) if (!sapi_module.phpinfo_as_text) { \
|
||||
php_info_print("<h2>" name "</h2>\n"); \
|
||||
} else { \
|
||||
@ -548,6 +561,11 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
|
||||
#ifdef CONFIGURE_COMMAND
|
||||
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
php_info_print_table_row(2, "Windows Compiler and Version", PHP_WINAPI_COMPILER );
|
||||
#endif
|
||||
|
||||
if (sapi_module.pretty_name) {
|
||||
php_info_print_table_row(2, "Server API", sapi_module.pretty_name );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user