Skip to content

Commit ba6d193

Browse files
committed
Add NTS/ZTS information to php -v
1 parent 3e74df7 commit ba6d193

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

sapi/cli/php_cli.c

+11-8
Original file line numberDiff line numberDiff line change
@@ -682,17 +682,20 @@ static int do_cli(int argc, char **argv) /* {{{ */
682682
goto out;
683683

684684
case 'v': /* show php version & quit */
685-
php_printf("PHP %s (%s) (built: %s %s) %s\nCopyright (c) 1997-2015 The PHP Group\n%s",
685+
php_printf("PHP %s (%s) (built: %s %s) ( %s)\nCopyright (c) 1997-2015 The PHP Group\n%s",
686686
PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__,
687-
#if ZEND_DEBUG && defined(HAVE_GCOV)
688-
"(DEBUG GCOV)",
689-
#elif ZEND_DEBUG
690-
"(DEBUG)",
691-
#elif defined(HAVE_GCOV)
692-
"(GCOV)",
687+
#if ZTS
688+
"ZTS "
693689
#else
694-
"",
690+
"NTS "
695691
#endif
692+
#if ZEND_DEBUG
693+
"DEBUG "
694+
#endif
695+
#ifdef HAVE_GCOV
696+
"GCOV "
697+
#endif
698+
,
696699
get_zend_version()
697700
);
698701
sapi_deactivate();

0 commit comments

Comments
 (0)