On Fri, May 23, 2025 at 07:41:20PM +0200, Ondřej Surý wrote:
> Sorry, but no - the usage of idn_to_ascii() is invalid in 
> php-net-publicsuffix and you need to fix it there.
> 
> The missing check got fixed in 
> https://github.com/php/php-src/commit/33f1cf202ef1 and it's OK to make small 
> changes like this when changing major versions.
Well, it would be if it were documented I suppose,
but the documentation doesn't mention this change,
clearly documents that it returns string-or-false with no exceptions listed,
doesn't note /any/ restriction on $domain,
and the commit says "ext/intl: idn.c use ValueErrors where appropriate",
taking "appropriate" to mean "all errors not from the decoder loop itself"
(admittedly, PHP's false formatting fucked me diagnostically, I thought it were 
"").

Whatever.

Attachment: signature.asc
Description: PGP signature

Reply via email to