diff --git a/ext/standard/info.c b/ext/standard/info.c index ae0c78a6ae9..7496d1dadc5 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -50,6 +50,19 @@ ZEND_EXTERN_MODULE_GLOBALS(iconv) #include + +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("

" name "

\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 ); }