Fix GH-20366 ext/uri: Do not throw ValueError on null-byte#20489
Fix GH-20366 ext/uri: Do not throw ValueError on null-byte#20489kocsismate merged 2 commits intophp:PHP-8.5from
Conversation
|
Is this for master or 8.5? And can it wait for 8.5.1? |
Sorry! As always: I didn't set the target... It's a bug fix which fixes null-byte handling for WHATWG. It is completely broken in the RC-s right now. I think it's not a deal-breaker for 8.5.0... It seems like an edge case for me. @DanielEScherzer |
TimWolla
left a comment
There was a problem hiding this comment.
LGTM, but I would prefer the hexadecimal \x00 instead of the octal \0 in tests, because the latter can accidentally capture additional characters afterwards if they happen to be numeric.
|
Okay, this isn't in 8.5.0, to RM objections to the bug fix for 8.5.1 |
5b94e0c to
139983f
Compare
I can workaround this in a followup test improvement. |
Fixes #20366
We still need to verify if ext/uri can handle null bytes properly.