]> granicus.if.org Git - php/commitdiff
Print PHP version in phpinfo() func html title
authorMattJeevas <tehnya@gmail.com>
Thu, 23 Nov 2017 18:42:39 +0000 (21:42 +0300)
committerSara Golemon <pollita@php.net>
Sat, 25 Nov 2017 20:28:19 +0000 (15:28 -0500)
NEWS
ext/standard/info.c

diff --git a/NEWS b/NEWS
index 28eed08333bf204996b3b53185b8db54e1f8c5b7..eafaef041303faaeb9bff53cc63bcd45766fb2b5 100644 (file)
--- 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() <title/>. (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)
index c40eda9d84816d7717ea2a1367838bbf74a0eade..75143319f670c3598d1850ddb1cfc997b9d4a28e 100644 (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("<head>\n");
        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("</head>\n");
        php_info_print("<body><div class=\"center\">\n");