summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-05-10 16:18:00 +0000
committerMarkus Fischer <mfischer@php.net>2002-05-10 16:18:00 +0000
commitccbadfc11182184c4fc363d8fdbe8e9fc56de704 (patch)
tree9a8839fa567b53ab1e626a5e6da171d500fab18e /sapi/cli/php_cli.c
parentbf351e9639577a9861ecacd72522f9944759ef5a (diff)
downloadphp-git-ccbadfc11182184c4fc363d8fdbe8e9fc56de704.tar.gz
- Prefix the first version line with 'PHP' so it's easier to use shell tools to
parse the version number (both CLI and CGI).
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index cfdc729493..6f496d23b2 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -522,7 +522,7 @@ int main(int argc, char *argv[])
SG(headers_sent) = 1;
SG(request_info).no_headers = 1;
}
- php_printf("%s (%s)\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
+ php_printf("PHP %s (%s)\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
php_end_ob_buffers(1 TSRMLS_CC);
exit(1);
break;