com php-src: Print PHP version in phpinfo() func html title: NEWS ext/standard/info.c
| From: | Sara Golemon | Date: | Sat, 25 Nov 2017 20:28:19 +0000 |
| Subject: | com php-src: Print PHP version in phpinfo() func html title: NEWS ext/standard/info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100372@lists.php.net to get a copy of this message | ||
Commit: c9fecf7d879c78f54fde696337b335ccbe34c9cc
Author: MattJeevas <tehnya@gmail.com> Thu, 23 Nov 2017 21:42:39 +0300
Committer: Sara Golemon <pollita@php.net> Sat, 25 Nov 2017 15:28:19 -0500
Parents: 721f2cc51365527a1c70fc788a3b095503963887
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c9fecf7d879c78f54fde696337b335ccbe34c9cc
Log:
Print PHP version in phpinfo() func html title
Changed paths:
M NEWS
M ext/standard/info.c
Diff:
diff --git a/NEWS b/NEWS
index 28eed08..eafaef0 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() <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)
diff --git a/ext/standard/info.c b/ext/standard/info.c
index c40eda9..7514331 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()</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");