Skip to content

Commit c9fecf7

Browse files
MattJeevassgolemon
authored andcommitted
Print PHP version in phpinfo() func html title
1 parent 721f2cc commit c9fecf7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PHP NEWS
77
'php ext_skel.php' for all options. This means there is no dependencies
88
thrus making it work on Windows out of the box. (Kalle)
99
. Removed support for BeOS. (Kalle)
10+
. Add PHP_VERSION to phpinfo() <title/>. (github/MattJeevas)
1011
. Fixed bug #75031 (support append mode in temp/memory streams). (adsr)
1112
. Fixed bug #74860 (Uncaught exceptions not being formatted properly when
1213
error_log set to "syslog"). (Philip Prindeville)

ext/standard/info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ PHPAPI void php_print_info_htmlhead(void)
766766
php_info_print("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
767767
php_info_print("<head>\n");
768768
php_info_print_style();
769-
php_info_print("<title>phpinfo()</title>");
769+
php_info_printf("<title>PHP %s - phpinfo()</title>", PHP_VERSION);
770770
php_info_print("<meta name=\"ROBOTS\" content=\"NOINDEX,NOFOLLOW,NOARCHIVE\" />");
771771
php_info_print("</head>\n");
772772
php_info_print("<body><div class=\"center\">\n");

0 commit comments

Comments
 (0)