Browse Source

Added the current SAPI to the output of php -v

experimental/new_ui_api
Sander Roobol 24 years ago
parent
commit
7586cdc654
  1. 2
      sapi/cgi/cgi_main.c
  2. 2
      sapi/cli/php_cli.c

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

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

Loading…
Cancel
Save