Commit d8560ad1776 for php.net

commit d8560ad17764f657322f5db01505f81821cef14d
Author: Remi Collet <remi@remirepo.net>
Date:   Fri Mar 20 16:39:26 2026 +0100

    use lexbor version from library

diff --git a/ext/lexbor/config.m4 b/ext/lexbor/config.m4
index 3e67c10fdfc..ee136881c5b 100644
--- a/ext/lexbor/config.m4
+++ b/ext/lexbor/config.m4
@@ -2,7 +2,6 @@ PHP_LEXBOR_CFLAGS="-I@ext_srcdir@/"
 LEXBOR_DIR="lexbor"

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

 PHP_NEW_EXTENSION([lexbor], m4_normalize([
     php_lexbor.c
diff --git a/ext/lexbor/config.w32 b/ext/lexbor/config.w32
index bd1f3b383a7..900cc91e9dd 100644
--- a/ext/lexbor/config.w32
+++ b/ext/lexbor/config.w32
@@ -24,6 +24,5 @@ ADD_SOURCES("ext/lexbor/lexbor/url", "url.c","lexbor");
 ADD_FLAG("CFLAGS_LEXBOR", "/D LEXBOR_BUILDING /utf-8");

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

 PHP_INSTALL_HEADERS("ext/lexbor", "php_lexbor.h lexbor/");
diff --git a/ext/lexbor/php_lexbor.c b/ext/lexbor/php_lexbor.c
index 7f847bfb0af..af61f90291d 100644
--- a/ext/lexbor/php_lexbor.c
+++ b/ext/lexbor/php_lexbor.c
@@ -22,6 +22,7 @@
 #include "php.h"
 #include "zend_globals.h"
 #include "ext/standard/info.h"
+#include "lexbor/core/base.h"
 #include "lexbor/core/types.h"
 #include "lexbor/core/lexbor.h"

@@ -53,7 +54,7 @@ static PHP_MINFO_FUNCTION(lexbor)
 {
 	php_info_print_table_start();
 	php_info_print_table_row(2, "Lexbor support", "active");
-	php_info_print_table_row(2, "Lexbor version", LEXBOR_VERSION);
+	php_info_print_table_row(2, "Lexbor version", LEXBOR_VERSION_STRING);
 	php_info_print_table_end();
 }