We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80cdfb6 commit a3663b4Copy full SHA for a3663b4
ast.c
@@ -1167,9 +1167,15 @@ const zend_function_entry ast_node_functions[] = {
1167
};
1168
1169
PHP_MINFO_FUNCTION(ast) {
1170
+ zend_string *info = ast_version_info();
1171
+
1172
php_info_print_table_start();
1173
php_info_print_table_row(2, "ast support", "enabled");
1174
+ php_info_print_table_row(2, "extension version", PHP_AST_VERSION);
1175
+ php_info_print_table_row(2, "AST version", ZSTR_VAL(info));
1176
php_info_print_table_end();
1177
1178
+ zend_string_release(info);
1179
}
1180
1181
PHP_RINIT_FUNCTION(ast) {
0 commit comments