66#include <errno.h>
77#include <ext/spl/spl_exceptions.h>
88#include <ext/standard/head.h>
9+ #include <ext/standard/info.h>
910#ifdef HAVE_PHP_SESSION
1011#include <ext/session/php_session.h>
1112#endif
@@ -107,6 +108,8 @@ frankenphp_config frankenphp_get_config() {
107108 };
108109}
109110
111+ const char * * frankenphp_phpinfo_entries = NULL ;
112+
110113bool should_filter_var = 0 ;
111114bool original_user_abort_setting = 0 ;
112115frankenphp_interned_strings_t frankenphp_strings = {0 };
@@ -1101,6 +1104,17 @@ PHP_MINIT_FUNCTION(frankenphp) {
11011104 return SUCCESS ;
11021105}
11031106
1107+ PHP_MINFO_FUNCTION (frankenphp ) {
1108+ php_info_print_table_start ();
1109+ php_info_print_table_row (2 , "Version" , TOSTRING (FRANKENPHP_VERSION ));
1110+ if (frankenphp_phpinfo_entries ) {
1111+ for (int i = 0 ; frankenphp_phpinfo_entries [i ] != NULL ; i += 2 ) {
1112+ php_info_print_table_row (2 , frankenphp_phpinfo_entries [i ], frankenphp_phpinfo_entries [i + 1 ]);
1113+ }
1114+ }
1115+ php_info_print_table_end ();
1116+ }
1117+
11041118static zend_module_entry frankenphp_module = {
11051119 STANDARD_MODULE_HEADER ,
11061120 "frankenphp" ,
@@ -1109,7 +1123,7 @@ static zend_module_entry frankenphp_module = {
11091123 NULL , /* shutdown */
11101124 NULL , /* request initialization */
11111125 NULL , /* request shutdown */
1112- NULL , /* information */
1126+ PHP_MINFO ( frankenphp ), /* information */
11131127 TOSTRING (FRANKENPHP_VERSION ),
11141128 STANDARD_MODULE_PROPERTIES };
11151129
0 commit comments