Skip to content

Commit 49fd1d4

Browse files
committed
Show the integer size in phpinfo()
Resolves GH-12188
1 parent 2351df3 commit 49fd1d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/standard/info.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,9 @@ 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);
870+
868871
#if ZEND_DEBUG
869872
php_info_print_table_row(2, "Debug Build", "yes" );
870873
#else

0 commit comments

Comments
 (0)