Skip to content

Commit 5ca89c5

Browse files
committed
Expose version information for Lexbor
1 parent dddc830 commit 5ca89c5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

ext/lexbor/config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if test "$PHP_LEXBOR" != "no" || test "$PHP_LEXBOR_ENABLED" = "yes"; then
1111
LEXBOR_DIR="lexbor"
1212

1313
AC_DEFINE([HAVE_LEXBOR], [1], [Define to 1 if the PHP extension 'lexbor' is available.])
14+
AC_DEFINE([LEXBOR_VERSION], ["2.5.0"], [Define the main Lexbor version])
1415

1516
PHP_NEW_EXTENSION([lexbor], m4_normalize([
1617
php_lexbor.c

ext/lexbor/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if (PHP_LEXBOR == "yes") {
2525
ADD_FLAG("CFLAGS_LEXBOR", "/D LEXBOR_STATIC /utf-8");
2626

2727
AC_DEFINE("HAVE_LEXBOR", 1, "Define to 1 if the PHP extension 'lexbor' is available.");
28+
AC_DEFINE("LEXBOR_VERSION", "2.5.0", "Define the main Lexbor version")
2829

2930
PHP_INSTALL_HEADERS("ext/lexbor", "php_lexbor.h lexbor/");
3031
}

ext/lexbor/php_lexbor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static PHP_MINFO_FUNCTION(lexbor)
3939
{
4040
php_info_print_table_start();
4141
php_info_print_table_row(2, "Lexbor support", "active");
42+
php_info_print_table_row(2, "Lexbor version", LEXBOR_VERSION);
4243
php_info_print_table_end();
4344
}
4445

0 commit comments

Comments
 (0)