Skip to content

Commit d8560ad

Browse files
committed
use lexbor version from library
1 parent 0d7ce4c commit d8560ad

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ext/lexbor/config.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ PHP_LEXBOR_CFLAGS="-I@ext_srcdir@/"
22
LEXBOR_DIR="lexbor"
33

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

76
PHP_NEW_EXTENSION([lexbor], m4_normalize([
87
php_lexbor.c

ext/lexbor/config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ ADD_SOURCES("ext/lexbor/lexbor/url", "url.c","lexbor");
2424
ADD_FLAG("CFLAGS_LEXBOR", "/D LEXBOR_BUILDING /utf-8");
2525

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

2928
PHP_INSTALL_HEADERS("ext/lexbor", "php_lexbor.h lexbor/");

ext/lexbor/php_lexbor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "php.h"
2323
#include "zend_globals.h"
2424
#include "ext/standard/info.h"
25+
#include "lexbor/core/base.h"
2526
#include "lexbor/core/types.h"
2627
#include "lexbor/core/lexbor.h"
2728

@@ -53,7 +54,7 @@ static PHP_MINFO_FUNCTION(lexbor)
5354
{
5455
php_info_print_table_start();
5556
php_info_print_table_row(2, "Lexbor support", "active");
56-
php_info_print_table_row(2, "Lexbor version", LEXBOR_VERSION);
57+
php_info_print_table_row(2, "Lexbor version", LEXBOR_VERSION_STRING);
5758
php_info_print_table_end();
5859
}
5960

0 commit comments

Comments
 (0)