Skip to content

Commit 78fc4cd

Browse files
authored
ext/standard: Fix phpcredits() heading alignment (#22918)
1 parent 718c4fd commit 78fc4cd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

ext/standard/credits.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PHPAPI ZEND_COLD void php_print_credits(int flag) /* {{{ */
3535
/* Group */
3636

3737
php_info_print_table_start();
38-
php_info_print_table_header(1, "PHP Group");
38+
php_info_print_table_colspan_header(1, "PHP Group");
3939
php_info_print_table_row(1, "Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski");
4040
php_info_print_table_end();
4141
}
@@ -44,9 +44,9 @@ PHPAPI ZEND_COLD void php_print_credits(int flag) /* {{{ */
4444
/* Design & Concept */
4545
php_info_print_table_start();
4646
if (!sapi_module.phpinfo_as_text) {
47-
php_info_print_table_header(1, "Language Design & Concept");
47+
php_info_print_table_colspan_header(1, "Language Design & Concept");
4848
} else {
49-
php_info_print_table_header(1, "Language Design & Concept");
49+
php_info_print_table_colspan_header(1, "Language Design & Concept");
5050
}
5151
php_info_print_table_row(1, "Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger");
5252
php_info_print_table_end();

ext/standard/tests/general_functions/phpcredits.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ var_dump(phpcredits(CREDITS_GROUP));
1515
--EXPECTF--
1616
PHP Credits
1717

18-
PHP Group
18+
%wPHP Group%w
1919
%a
2020

21-
Language Design & Concept
21+
%wLanguage Design & Concept%w
2222
%a
2323

2424
%wPHP Authors%w
@@ -45,6 +45,6 @@ bool(true)
4545
--
4646
PHP Credits
4747

48-
PHP Group
48+
%wPHP Group%w
4949
%a
5050
bool(true)

0 commit comments

Comments
 (0)