From: Markus Fischer Date: Fri, 10 May 2002 16:18:00 +0000 (+0000) Subject: - Prefix the first version line with 'PHP' so it's easier to use shell tools to X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccbadfc11182184c4fc363d8fdbe8e9fc56de704;p=php - Prefix the first version line with 'PHP' so it's easier to use shell tools to parse the version number (both CLI and CGI). --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 6cc052eb68..46b967ba55 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -874,7 +874,7 @@ consult the installation file that came with this distribution, or visit \n\ 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; 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;