Repository navigation
ext/uri: Fixes inconsistent validation ordering - #23823
Conversation
|
Does this need |
Not for |
|
@TimWolla I realized that the fact that the whatwg errors are LIFO is just a side effect of my unfortunate choice to use So the main question is if we are allowed to/want to change the order now or later? If yes, then as far as I can see, this PR should rather pivot to fix this detail. |
I don't think we ever guaranteed a specific order: Users are expected to check for For PHP 8.6, I'd say: Ask the release managers (by requesting review from the team). For master / 8.7, this can just change with a UPGRADING note. |
|
As mentioned in the desc, LIFO surprising. Should be FIFO; so keen to pivot. When there is a decision feel free to @ me. |
|
@mbeccati @svpernova09 can you please chime in here? #23823 (comment) We would like to reverse the order of errors passed back/thrown by Can we still do it? As Tim wrote above, we guaranteed no particular order, and I agree with him that likely there is no much use of these errors besides displaying. |
|
@kocsismate: we've discussed and we think it's ok to merge. |
|
@NickSdot Can you please update this PR to fix the order of errors? |
Co-authored-by: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>
a89a3bb to
fbfad78
Compare
fbfad78 to
0937672
Compare
@kocsismate done and targeted 8.6 |
kocsismate
left a comment
There was a problem hiding this comment.
Overall: looks good, but I had a few nits before merge
* PHP-8.6: ext/uri: Fixes inconsistent validation ordering (#23823)
* master: (109 commits) ext/uri: Fixes inconsistent validation ordering (php#23823) ext/uri: Address UrlBuilder todo comments Fix phpGH-24139: NULL dereference in php_ini.c when expand_filepath() fails PHP-8.5 is now for PHP 8.5.13-dev Fix phpGH-23352: DOMDocument::adoptNode() stale document references Fix merge ext/soap: fix use of uninitialized func in do_request() on OOM bailout Fix merge ext/curl: Use try conversion functions in curl (php#24067) ext/standard: Retry getpwnam_r() on ERANGE in php_get_uid_by_name() Fix phpGH-20890: Segfault in zval_undefined_cv with non-simple property hook with minimal tracing JIT PHP 8.4 is now for PHP 8.4.28-dev ext/phar: Fix double-free in webPhar() without PATH_INFO (php#24166) [ci skip] Update NEWS for 8.6.0RC4 std: refactor php_array_find() to only use FCC std: add trampoline tests for array_find based user functions std: move some array find tests to a dedicated folder Fix alternate form flag for %x testing stale signed value Fix bzopen() ownership of the stream it wraps Preserve bare NUL access with open_basedir on Windows (php#24158) ... # Conflicts: # ext/openssl/tests/stream_poll_handle_cast.phpt # ext/openssl/xp_ssl.c # main/php_streams.h # main/streams/plain_wrapper.c # main/streams/userspace.c
Aligns builder and parser error order. Parser is LIFO, which is consistent with Lexbor logs (but imo surprising).