1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

use lexbor version from library

This commit is contained in:
Remi Collet
2026-03-20 16:39:26 +01:00
committed by Remi Collet
parent 0d7ce4c037
commit d8560ad177
3 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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/");

View File

@@ -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();
}