From: MattJeevas Date: Thu, 23 Nov 2017 18:42:39 +0000 (+0300) Subject: Print PHP version in phpinfo() func html title X-Git-Tag: php-7.3.0alpha1~950 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9fecf7d879c78f54fde696337b335ccbe34c9cc;p=php Print PHP version in phpinfo() func html title --- diff --git a/NEWS b/NEWS index 28eed08333..eafaef0413 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ PHP NEWS 'php ext_skel.php' for all options. This means there is no dependencies thrus making it work on Windows out of the box. (Kalle) . Removed support for BeOS. (Kalle) + . Add PHP_VERSION to phpinfo() . (github/MattJeevas) . Fixed bug #75031 (support append mode in temp/memory streams). (adsr) . Fixed bug #74860 (Uncaught exceptions not being formatted properly when error_log set to "syslog"). (Philip Prindeville) diff --git a/ext/standard/info.c b/ext/standard/info.c index c40eda9d84..75143319f6 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -766,7 +766,7 @@ PHPAPI void php_print_info_htmlhead(void) php_info_print("<html xmlns=\"http://www.w3.org/1999/xhtml\">"); php_info_print("<head>\n"); php_info_print_style(); - php_info_print("<title>phpinfo()"); + php_info_printf("PHP %s - phpinfo()", PHP_VERSION); php_info_print(""); php_info_print("\n"); php_info_print("
\n");