From 10e57fde1a510b3fc105a29c2002cb8e1aab3b17 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Sun, 11 Feb 2024 14:15:22 +0700 Subject: [PATCH] ext/standard: Minor improvements to phpinfo() output - Change `http://` links to `https://` for php.net and zend.com - Remove `` tags with `` tags (used for highlight.* INI color value display previews) --- Zend/zend_ini.c | 2 +- ext/standard/info.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 40bd38c163c70..7f2299782d9bb 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -939,7 +939,7 @@ ZEND_INI_DISP(zend_ini_color_displayer_cb) /* {{{ */ } if (value) { if (zend_uv.html_errors) { - zend_printf("%s", value, value); + zend_printf("%s", value, value); } else { ZEND_PUTS(value); } diff --git a/ext/standard/info.c b/ext/standard/info.c index 823e9ff0c7756..70cd5bda7b2e9 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -805,7 +805,7 @@ PHPAPI ZEND_COLD void php_print_info(int flag) the_time = time(NULL); ta = php_localtime_r(&the_time, &tmbuf); - php_info_print("tm_mon==3) && (ta->tm_mday==1)) { php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" />"); } else { @@ -928,7 +928,7 @@ PHPAPI ZEND_COLD void php_print_info(int flag) /* Zend Engine */ php_info_print_box_start(0); if (!sapi_module.phpinfo_as_text) { - php_info_print("\"Zend\n"); } php_info_print("This program makes use of the Zend Scripting Language Engine:");