Skip to content

Commit f6f1f7c

Browse files
authored
ext/standard: Minor improvements to phpinfo() output (#13371)
- Change `http://` links to `https://` for php.net and zend.com - Remove `<img border=0` attributes as they are no longer in the HTML standard - Replace `<font>` tags with `<span>` tags (used for highlight.* INI color value display previews)
1 parent d2266ef commit f6f1f7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend_ini.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ ZEND_INI_DISP(zend_ini_color_displayer_cb) /* {{{ */
939939
}
940940
if (value) {
941941
if (zend_uv.html_errors) {
942-
zend_printf("<font style=\"color: %s\">%s</font>", value, value);
942+
zend_printf("<span style=\"color: %s\">%s</span>", value, value);
943943
} else {
944944
ZEND_PUTS(value);
945945
}

ext/standard/info.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
805805
the_time = time(NULL);
806806
ta = php_localtime_r(&the_time, &tmbuf);
807807

808-
php_info_print("<a href=\"http://www.php.net/\"><img border=\"0\" src=\"");
808+
php_info_print("<a href=\"https://www.php.net/\"><img src=\"");
809809
if (ta && (ta->tm_mon==3) && (ta->tm_mday==1)) {
810810
php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
811811
} else {
@@ -928,7 +928,7 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
928928
/* Zend Engine */
929929
php_info_print_box_start(0);
930930
if (!sapi_module.phpinfo_as_text) {
931-
php_info_print("<a href=\"http://www.zend.com/\"><img border=\"0\" src=\"");
931+
php_info_print("<a href=\"https://www.zend.com/\"><img src=\"");
932932
php_info_print(ZEND_LOGO_DATA_URI "\" alt=\"Zend logo\" /></a>\n");
933933
}
934934
php_info_print("This program makes use of the Zend Scripting Language Engine:");

0 commit comments

Comments
 (0)