diff --git a/NEWS b/NEWS index 9101692297cd0..1fd5c2e374d55 100644 --- a/NEWS +++ b/NEWS @@ -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! >>> diff --git a/ext/standard/info.c b/ext/standard/info.c index 9d914508e9776..823e9ff0c7756 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -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 diff --git a/ext/standard/tests/general_functions/phpinfo.phpt b/ext/standard/tests/general_functions/phpinfo.phpt index 57ba13bb7bf7c..65e439213f4c5 100644 --- a/ext/standard/tests/general_functions/phpinfo.phpt +++ b/ext/standard/tests/general_functions/phpinfo.phpt @@ -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