Browse Source

- MFH Show the exact version

PHP-5.1
Marcus Boerger 21 years ago
parent
commit
cb27823e82
  1. 17
      sapi/cli/php_cli.c

17
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;

Loading…
Cancel
Save