Skip to content

Commit ff72fb8

Browse files
authored
uri: Stop accessing a private header to retrieve the uriparser version (#19678)
1 parent 4b99519 commit ff72fb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/uri/php_uri.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "uri_parser_rfc3986.h"
3131
#include "uri_parser_php_parse_url.h"
3232
#include "php_uri_arginfo.h"
33-
#include "uriparser/src/UriConfig.h"
3433

3534
zend_class_entry *uri_rfc3986_uri_ce;
3635
zend_object_handlers uri_rfc3986_uri_object_handlers;
@@ -43,8 +42,6 @@ zend_class_entry *uri_whatwg_invalid_url_exception_ce;
4342
zend_class_entry *uri_whatwg_url_validation_error_type_ce;
4443
zend_class_entry *uri_whatwg_url_validation_error_ce;
4544

46-
#define URIPARSER_VERSION PACKAGE_VERSION
47-
4845
static const zend_module_dep uri_deps[] = {
4946
ZEND_MOD_REQUIRED("lexbor")
5047
ZEND_MOD_END
@@ -1065,7 +1062,7 @@ static PHP_MINFO_FUNCTION(uri)
10651062
{
10661063
php_info_print_table_start();
10671064
php_info_print_table_row(2, "uri support", "active");
1068-
php_info_print_table_row(2, "uriparser library version", URIPARSER_VERSION);
1065+
php_info_print_table_row(2, "uriparser library version", URI_VER_ANSI);
10691066
php_info_print_table_end();
10701067
}
10711068

0 commit comments

Comments
 (0)