Skip to content

Implement "Followup improvements for ext/uri" RFC - URL building with base URL - #23526

Draft
kocsismate wants to merge 1 commit into
php:masterfrom
kocsismate:uri-followup5
Draft

Implement "Followup improvements for ext/uri" RFC - URL building with base URL#23526
kocsismate wants to merge 1 commit into
php:masterfrom
kocsismate:uri-followup5

Conversation

@kocsismate

Copy link
Copy Markdown
Member

RFC: https://wiki.php.net/rfc/uri_followup#uri_building

Add support for passing a non-null $baseUrl parameter for Uri\WhatWg\UrlBuilder::build().

This PR is not complete yet (tests are missing).

… base URL

RFC: https://wiki.php.net/rfc/uri_followup#uri_building

Add support for passing a non-null $baseUrl parameter for Uri\WhatWg\UrlBuilder::build().
}
}

ZEND_ATTRIBUTE_NONNULL_ARGS(1, 2, 3, 4, 5, 6, 7, 8, 9) lxb_url_t *php_uri_parser_whatwg_resolve_reference_from_zval(

@kocsismate kocsismate Aug 31, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this code below is pretty much hacky, works coincidentally, and to be honest I wish it wouldn't exist. 😅 On the other hand, it gets the job done! So thank you @arnaud-lb for the suggestion, your idea works indeed :) I would have never thought about it.

Due to the above mentioned implementation difficulties though, IMO we should prioritize if the feature is worth more or the sanity of our code ^^

@kocsismate
kocsismate requested a review from TimWolla August 31, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant