summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-09-30 12:39:09 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-09-30 12:39:09 +0200
commitba6d193b4cc4992104a7543509dc4db01832ee97 (patch)
tree5907155146da28393e30b4c9b36aad1355c3725e /sapi/cli/php_cli.c
parent3e74df74f951a4272061f0e67089228c6a6c23e1 (diff)
downloadphp-git-ba6d193b4cc4992104a7543509dc4db01832ee97.tar.gz
Add NTS/ZTS information to php -v
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 94d5b84f67..b4288b87a2 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -682,17 +682,20 @@ static int do_cli(int argc, char **argv) /* {{{ */
goto out;
case 'v': /* show php version & quit */
- php_printf("PHP %s (%s) (built: %s %s) %s\nCopyright (c) 1997-2015 The PHP Group\n%s",
+ php_printf("PHP %s (%s) (built: %s %s) ( %s)\nCopyright (c) 1997-2015 The PHP Group\n%s",
PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__,
-#if ZEND_DEBUG && defined(HAVE_GCOV)
- "(DEBUG GCOV)",
-#elif ZEND_DEBUG
- "(DEBUG)",
-#elif defined(HAVE_GCOV)
- "(GCOV)",
+#if ZTS
+ "ZTS "
#else
- "",
+ "NTS "
#endif
+#if ZEND_DEBUG
+ "DEBUG "
+#endif
+#ifdef HAVE_GCOV
+ "GCOV "
+#endif
+ ,
get_zend_version()
);
sapi_deactivate();