mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: uri: Make `php_uri_parser` structs PHPAPI (#20243)
This commit is contained in:
@@ -165,7 +165,7 @@ static void uri_parser_php_parse_url_destroy(void *uri)
|
||||
php_url_free(parse_url_uri);
|
||||
}
|
||||
|
||||
const php_uri_parser php_uri_parser_php_parse_url = {
|
||||
PHPAPI const php_uri_parser php_uri_parser_php_parse_url = {
|
||||
.name = PHP_URI_PARSER_PHP_PARSE_URL,
|
||||
.parse = uri_parser_php_parse_url_parse,
|
||||
.clone = NULL,
|
||||
|
||||
@@ -20,6 +20,6 @@
|
||||
|
||||
#include "php_uri_common.h"
|
||||
|
||||
extern const php_uri_parser php_uri_parser_php_parse_url;
|
||||
PHPAPI extern const php_uri_parser php_uri_parser_php_parse_url;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -615,7 +615,7 @@ static void php_uri_parser_rfc3986_destroy(void *uri)
|
||||
efree(uriparser_uris);
|
||||
}
|
||||
|
||||
const php_uri_parser php_uri_parser_rfc3986 = {
|
||||
PHPAPI const php_uri_parser php_uri_parser_rfc3986 = {
|
||||
.name = PHP_URI_PARSER_RFC3986,
|
||||
.parse = php_uri_parser_rfc3986_parse,
|
||||
.clone = php_uri_parser_rfc3986_clone,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "php_uri_common.h"
|
||||
|
||||
extern const php_uri_parser php_uri_parser_rfc3986;
|
||||
PHPAPI extern const php_uri_parser php_uri_parser_rfc3986;
|
||||
|
||||
typedef struct php_uri_parser_rfc3986_uris php_uri_parser_rfc3986_uris;
|
||||
|
||||
|
||||
@@ -621,7 +621,7 @@ static void php_uri_parser_whatwg_destroy(void *uri)
|
||||
lxb_url_destroy(lexbor_uri);
|
||||
}
|
||||
|
||||
const php_uri_parser php_uri_parser_whatwg = {
|
||||
PHPAPI const php_uri_parser php_uri_parser_whatwg = {
|
||||
.name = PHP_URI_PARSER_WHATWG,
|
||||
.parse = php_uri_parser_whatwg_parse,
|
||||
.clone = php_uri_parser_whatwg_clone,
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "php_uri_common.h"
|
||||
#include "lexbor/url/url.h"
|
||||
|
||||
extern const php_uri_parser php_uri_parser_whatwg;
|
||||
PHPAPI extern const php_uri_parser php_uri_parser_whatwg;
|
||||
|
||||
lxb_url_t *php_uri_parser_whatwg_parse_ex(const char *uri_str, size_t uri_str_len, const lxb_url_t *lexbor_base_url, zval *errors, bool silent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user