summaryrefslogtreecommitdiff
path: root/ext/standard/info.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-05-27 18:23:56 +0000
committerPierre Joye <pajoye@php.net>2008-05-27 18:23:56 +0000
commit3431c2e7c4bf22d9eba101df1c968c27758f7c97 (patch)
tree634c4352a878083e8ee0d547d821116af7f6d96d /ext/standard/info.c
parentac253bab08bf77eb113f5c517e326251b9e9a04d (diff)
downloadphp-git-3431c2e7c4bf22d9eba101df1c968c27758f7c97.tar.gz
- [MFH] Add compiler informations on Windows (will add more info later, like x86 or x64 and makes it available in userland)
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r--ext/standard/info.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index f9402c809f..41babbc643 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -48,6 +48,18 @@ ZEND_EXTERN_MODULE_GLOBALS(mbstring)
ZEND_EXTERN_MODULE_GLOBALS(iconv)
#endif
+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) { \
PUTS("<h2>" name "</h2>\n"); \
} else { \
@@ -464,6 +476,12 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
#ifdef CONFIGURE_COMMAND
php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
#endif
+
+
+fdef 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 );
}