]> granicus.if.org Git - php/commitdiff
- Prefix the first version line with 'PHP' so it's easier to use shell tools to
authorMarkus Fischer <mfischer@php.net>
Fri, 10 May 2002 16:18:00 +0000 (16:18 +0000)
committerMarkus Fischer <mfischer@php.net>
Fri, 10 May 2002 16:18:00 +0000 (16:18 +0000)
  parse the version number (both CLI and CGI).

sapi/cgi/cgi_main.c
sapi/cli/php_cli.c

index 6cc052eb68066ce458a8fa4a2fddd8dc96f036c2..46b967ba559ede06198cb0defcaa6969da55de8d 100644 (file)
@@ -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;
index cfdc72949325781360d5945e482459b9822217a7..6f496d23b2e2933cc53d8e7ae05265a570504378 100644 (file)
@@ -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;