-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Add RFC 3986 and WHATWG compliant URL parsing support #14461
base: master
Are you sure you want to change the base?
Conversation
@@ -3715,7 +3715,6 @@ function uniqid(string $prefix = "", bool $more_entropy = false): string {} | |||
|
|||
/** | |||
* @return int|string|array<string, int|string>|null|false | |||
* @compile-time-eval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed for benchmarking purposes
ext/url/php_url.c
Outdated
|
||
static void cleanup_parser(void) | ||
{ | ||
if (++URL_G(urls) % 500 == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach is copy-pasted from lexbor/lexbor#206
823e4c6
to
e65deb7
Compare
0ccffa0
to
04d4e6e
Compare
@kocsismate The build failures are not because of Lexbor itself, but because we use a slightly different data structure for the encodings in order to be more memory efficient (see the Note in https://github.com/php/php-src/blob/master/ext/dom/lexbor/patches/README.md) |
I need to pull in a new version of Lexbor as well in 8.4 for the GB18030 changes so I'll handle the encoding changes. |
@nielsdos Ah thanks for the link! I totally missed the readme :/ TBH I silenced the compiler errors with I was about to report your findings back to my Lexbor issue, but I've just seen that you beat me to do it :) |
I'll make a PR to update Lexbor now, then once that's merged you can rebase on master and get rid of the warning silencer. |
acb1a98
to
5a25f1a
Compare
13e8566
to
8e07430
Compare
2nd take after the failed experiment with #11315
RFC: https://wiki.php.net/rfc/url_parsing_api