You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to handle IDN host you are required to install the intl extension otherwise an exception will be thrown when attempting to validate or format such host.
This suggests that if the intl extension was not installed (contrary to advice, of course), then it might still work if only non-IDN hosts are used.
However, with a trivial test on PHP 7.2 withoutintl:
PHP Fatal error: Uncaught Error: Undefined constant 'IDNA_ERROR_EMPTY_LABEL' in …/vendor/league/uri/src/Uri.php:626
Of course, the obvious solution is to install intl, which I will be doing.
So, does the documentation need clarifying to say that intl is required whether IDN hosts are used or not; or should the library be fixed to only fail with a thrown exception if an IDN host is passed (as suggested by the current documentation)?
The text was updated successfully, but these errors were encountered:
Question
The documentation for 6.0 includes:
This suggests that if the
intl
extension was not installed (contrary to advice, of course), then it might still work if only non-IDN hosts are used.However, with a trivial test on PHP 7.2 without
intl
:I get:
Of course, the obvious solution is to install
intl
, which I will be doing.So, does the documentation need clarifying to say that
intl
is required whether IDN hosts are used or not; or should the library be fixed to only fail with a thrown exception if an IDN host is passed (as suggested by the current documentation)?The text was updated successfully, but these errors were encountered: