Skip to content

Commit a0c2590

Browse files
committed
Improve clarity and phrasing for the integer size in phpinfo()
1 parent de24616 commit a0c2590

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/info.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
865865
php_info_print_table_row(2, "Zend Extension Build", ZEND_EXTENSION_BUILD_ID);
866866
php_info_print_table_row(2, "PHP Extension Build", ZEND_MODULE_BUILD_ID);
867867

868-
snprintf(temp_api, sizeof(temp_api), "%d-bit", SIZEOF_ZEND_LONG * 8);
869-
php_info_print_table_row(2, "Integer Size", temp_api);
868+
snprintf(temp_api, sizeof(temp_api), "%d bits", SIZEOF_ZEND_LONG * 8);
869+
php_info_print_table_row(2, "PHP Integer Size", temp_api);
870870

871871
#if ZEND_DEBUG
872872
php_info_print_table_row(2, "Debug Build", "yes" );

ext/standard/tests/general_functions/phpinfo.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PHP Extension => %d
2929
Zend Extension => %d
3030
Zend Extension Build => API%s
3131
PHP Extension Build => API%s
32-
Integer Size => %d-bit
32+
PHP Integer Size => %d bits
3333
Debug Build => %s
3434
Thread Safety => %s%A
3535
Zend Signal Handling => %s

0 commit comments

Comments
 (0)