diff options
| author | Sander Roobol <sander@php.net> | 2002-05-09 09:36:45 +0000 |
|---|---|---|
| committer | Sander Roobol <sander@php.net> | 2002-05-09 09:36:45 +0000 |
| commit | 7586cdc65460ff15acc2bfcfcb3bec49239fd296 (patch) | |
| tree | d8bd28c91ff06057e630373b4e338b09f6b34f97 /sapi | |
| parent | dad70be69c7e0ceec1388efcf176b01d63193e1d (diff) | |
| download | php-git-7586cdc65460ff15acc2bfcfcb3bec49239fd296.tar.gz | |
Added the current SAPI to the output of php -v
Diffstat (limited to 'sapi')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 | ||||
| -rw-r--r-- | sapi/cli/php_cli.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 6da5a80574..d044c95dd1 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -875,7 +875,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\n", PHP_VERSION); + php_printf("%s (%s)\n", PHP_VERSION, sapi_module.name); 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 8299ba919c..55f9f38031 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -523,7 +523,7 @@ int main(int argc, char *argv[]) SG(headers_sent) = 1; SG(request_info).no_headers = 1; } - php_printf("%s\n", PHP_VERSION); + php_printf("%s (%s)\n", PHP_VERSION, sapi_module.name); php_end_ob_buffers(1 TSRMLS_CC); exit(1); break; |
