X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_url.h;h=6d4b09d47fc782dc58dde813a2482a042d549ef1;hp=40e98a0f3743aaed8d7426dc09311a2441f398ec;hb=01751b935246b4483a50cbfca959de221e353085;hpb=74e7358add4c74d212b91d23e8600ef3c10d081e diff --git a/src/php_http_url.h b/src/php_http_url.h index 40e98a0..6d4b09d 100644 --- a/src/php_http_url.h +++ b/src/php_http_url.h @@ -13,7 +13,7 @@ #ifndef PHP_HTTP_URL_H #define PHP_HTTP_URL_H -#include +#include "ext/standard/url.h" /* php_http_url_mod() */ #define PHP_HTTP_URL_REPLACE 0x000 @@ -45,6 +45,22 @@ /* percent encode multibyte sequences in userinfo, path, query and fragment */ #define PHP_HTTP_URL_PARSE_TOPCT 0x200000 +#if PHP_HTTP_HAVE_IDNA2008 +#define PHP_HTTP_URL_PARSE_TOIDN_2008 \ + (PHP_HTTP_URL_PARSE_TOIDN | 0x400000) +#endif +#if PHP_HTTP_HAVE_IDNA2003 +#define PHP_HTTP_URL_PARSE_TOIDN_2003 \ + (PHP_HTTP_URL_PARSE_TOIDN | 0x800000) +#endif + +/* ignore errors */ +#define PHP_HTTP_URL_IGNORE_ERRORS 0x10000000 +/* do not report errors */ +#define PHP_HTTP_URL_SILENT_ERRORS 0x20000000 + +#define PHP_HTTP_URL_STDFLAGS 0x00332003 + typedef struct php_http_url { /* compatible to php_url, but do not use php_url_free() */ char *scheme;