mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
MFB Make compiler/architecture info potentially cross-platform
This commit is contained in:
parent
9a7b2f0b9f
commit
d5970d85be
1 changed files with 6 additions and 13 deletions
|
@ -50,19 +50,6 @@ ZEND_EXTERN_MODULE_GLOBALS(iconv)
|
|||
|
||||
#include <unicode/uversion.h>
|
||||
|
||||
|
||||
#if _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 { \
|
||||
|
@ -558,6 +545,12 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
|
|||
php_info_print_table_start();
|
||||
php_info_print_table_row(2, "System", php_uname );
|
||||
php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ );
|
||||
#ifdef COMPILER
|
||||
php_info_print_table_row(2, "Compiler", COMPILER);
|
||||
#endif
|
||||
#ifdef ARCHITECTURE
|
||||
php_info_print_table_row(2, "Architecture", ARCHITECTURE);
|
||||
#endif
|
||||
#ifdef CONFIGURE_COMMAND
|
||||
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue