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

uri: Stop accessing a private header to retrieve the uriparser version (#19678)

This commit is contained in:
Tim Düsterhus
2025-09-04 22:35:42 +02:00
committed by GitHub
parent 4b99519eaa
commit ff72fb81ed

View File

@@ -30,7 +30,6 @@
#include "uri_parser_rfc3986.h"
#include "uri_parser_php_parse_url.h"
#include "php_uri_arginfo.h"
#include "uriparser/src/UriConfig.h"
zend_class_entry *uri_rfc3986_uri_ce;
zend_object_handlers uri_rfc3986_uri_object_handlers;
@@ -43,8 +42,6 @@ zend_class_entry *uri_whatwg_invalid_url_exception_ce;
zend_class_entry *uri_whatwg_url_validation_error_type_ce;
zend_class_entry *uri_whatwg_url_validation_error_ce;
#define URIPARSER_VERSION PACKAGE_VERSION
static const zend_module_dep uri_deps[] = {
ZEND_MOD_REQUIRED("lexbor")
ZEND_MOD_END
@@ -1065,7 +1062,7 @@ static PHP_MINFO_FUNCTION(uri)
{
php_info_print_table_start();
php_info_print_table_row(2, "uri support", "active");
php_info_print_table_row(2, "uriparser library version", URIPARSER_VERSION);
php_info_print_table_row(2, "uriparser library version", URI_VER_ANSI);
php_info_print_table_end();
}