From: Marcus Boerger Date: Sun, 22 Jan 2006 22:09:54 +0000 (+0000) Subject: - MFH Show the exact version X-Git-Tag: php-5.1.3RC1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb27823e821126308250c7f2733c2bbbb336fd36;p=php - MFH Show the exact version --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index e196ff3269..83bfc70b00 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -747,14 +747,23 @@ int main(int argc, char *argv[]) goto out; case 'v': /* show php version & quit */ - if (php_request_startup(TSRMLS_C)==FAILURE) { + if (php_request_startup(TSRMLS_C) == FAILURE) { goto err; } -#if ZEND_DEBUG - php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2006 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version()); + + php_printf("PHP %s (%s) (built: %s %s) %s\nCopyright (c) 1997-2006 The PHP Group\n%s", + PHP_VERSION, sapi_module.name, __DATE__, __TIME__, +#if ZEND_DEBUG && defined(HAVE_GCOV) + "(DEBUG GCOV)", +#elif ZEND_DEBUG + "(DEBUG)", +#elif defined(HAVE_GCOV) + "(GCOV)", #else - php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2006 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version()); + "", #endif + get_zend_version() + ); php_end_ob_buffers(1 TSRMLS_CC); exit_status=0; goto out;