1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Show the integer size in phpinfo() (#12201)

Resolves GH-12188
This commit is contained in:
Tim Düsterhus
2023-09-14 14:42:10 +02:00
committed by GitHub
parent 9f6cb6baa2
commit b2d244a444
3 changed files with 7 additions and 0 deletions

3
NEWS
View File

@@ -8,4 +8,7 @@ Core:
DOM:
. Added DOMNode::compareDocumentPosition(). (nielsdos)
Standard:
. Implement GH-12188 (Indication for the int size in phpinfo()). (timwolla)
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

View File

@@ -865,6 +865,9 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
php_info_print_table_row(2, "Zend Extension Build", ZEND_EXTENSION_BUILD_ID);
php_info_print_table_row(2, "PHP Extension Build", ZEND_MODULE_BUILD_ID);
snprintf(temp_api, sizeof(temp_api), "%d bits", SIZEOF_ZEND_LONG * 8);
php_info_print_table_row(2, "PHP Integer Size", temp_api);
#if ZEND_DEBUG
php_info_print_table_row(2, "Debug Build", "yes" );
#else

View File

@@ -29,6 +29,7 @@ PHP Extension => %d
Zend Extension => %d
Zend Extension Build => API%s
PHP Extension Build => API%s
PHP Integer Size => %d bits
Debug Build => %s
Thread Safety => %s%A
Zend Signal Handling => %s