MFB Make compiler/architecture info potentially cross-platform

This commit is contained in:
Steph Fox 2008-07-21 09:58:28 +00:00
parent 9a7b2f0b9f
commit d5970d85be

View file

@ -50,19 +50,6 @@ ZEND_EXTERN_MODULE_GLOBALS(iconv)
#include <unicode/uversion.h> #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) { \ #define SECTION(name) if (!sapi_module.phpinfo_as_text) { \
php_info_print("<h2>" name "</h2>\n"); \ php_info_print("<h2>" name "</h2>\n"); \
} else { \ } else { \
@ -558,6 +545,12 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
php_info_print_table_start(); php_info_print_table_start();
php_info_print_table_row(2, "System", php_uname ); php_info_print_table_row(2, "System", php_uname );
php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ ); 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 #ifdef CONFIGURE_COMMAND
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND ); php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
#endif #endif