Print PHP version in phpinfo() func html title

This commit is contained in:
MattJeevas 2017-11-23 21:42:39 +03:00 committed by Sara Golemon
parent 721f2cc513
commit c9fecf7d87
2 changed files with 2 additions and 1 deletions

1
NEWS
View file

@ -7,6 +7,7 @@ PHP NEWS
'php ext_skel.php' for all options. This means there is no dependencies 'php ext_skel.php' for all options. This means there is no dependencies
thrus making it work on Windows out of the box. (Kalle) thrus making it work on Windows out of the box. (Kalle)
. Removed support for BeOS. (Kalle) . Removed support for BeOS. (Kalle)
. Add PHP_VERSION to phpinfo() <title/>. (github/MattJeevas)
. Fixed bug #75031 (support append mode in temp/memory streams). (adsr) . Fixed bug #75031 (support append mode in temp/memory streams). (adsr)
. Fixed bug #74860 (Uncaught exceptions not being formatted properly when . Fixed bug #74860 (Uncaught exceptions not being formatted properly when
error_log set to "syslog"). (Philip Prindeville) error_log set to "syslog"). (Philip Prindeville)

View file

@ -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("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
php_info_print("<head>\n"); php_info_print("<head>\n");
php_info_print_style(); php_info_print_style();
php_info_print("<title>phpinfo()</title>"); php_info_printf("<title>PHP %s - phpinfo()</title>", PHP_VERSION);
php_info_print("<meta name=\"ROBOTS\" content=\"NOINDEX,NOFOLLOW,NOARCHIVE\" />"); php_info_print("<meta name=\"ROBOTS\" content=\"NOINDEX,NOFOLLOW,NOARCHIVE\" />");
php_info_print("</head>\n"); php_info_print("</head>\n");
php_info_print("<body><div class=\"center\">\n"); php_info_print("<body><div class=\"center\">\n");