Use php_info_print_table_header for actual column headers only (#9485)

Using php_info_print_table_header() for "Foo: bar" looks odd and out of place,
because the whole line is colored. It is also questionable from a HTML
semantics point of view, because it does not described the columns that follow.

The use of this across extensions is inconsistent. It was part of the skeleton,
but ext/date or ext/json already use a regular row.
This commit is contained in:
Tim Düsterhus 2022-09-06 08:48:22 +02:00 committed by GitHub
parent 9bea5f443b
commit 03fd405423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 27 additions and 27 deletions

View file

@ -512,7 +512,7 @@ PHP_MINFO_FUNCTION(pgsql)
char buf[256];
php_info_print_table_start();
php_info_print_table_header(2, "PostgreSQL Support", "enabled");
php_info_print_table_row(2, "PostgreSQL Support", "enabled");
php_info_print_table_row(2, "PostgreSQL (libpq) Version", pgsql_libpq_version);
#ifdef HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT
php_info_print_table_row(2, "Multibyte character support", "enabled");