-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback mechanism for missing IDN functions #14077
Conversation
Which Debian package should this be? I had a look at 2023.12 and there it seems to be a composer dependency (from the lock file) but it was removed from there. |
It is |
@@ -30,7 +30,7 @@ Due to the large variety of operating systems and PHP platforms in existence we | |||
* Apache with mod-rewrite enabled and "Options All" so you can use a local `.htaccess` file | |||
* PHP 7.4+ | |||
* PHP *command line* access with register_argc_argv set to true in the php.ini file | |||
* Curl, GD, GMP, PDO, mbstrings, MySQLi, hash, xml, zip, IntlChar and OpenSSL extensions | |||
* Curl, GD, GMP, PDO, mbstrings, MySQLi, hash, xml, zip, IntlChar, IDN and OpenSSL extensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should read intl
instead.
@@ -27,7 +27,7 @@ Requirements | |||
* Apache mit einer aktiverten mod-rewrite-Funktion und dem Eintrag "Options All", so dass du die lokale .htaccess-Datei nutzen kannst | |||
* PHP 7.4+ | |||
* PHP *Kommandozeilen*-Zugang mit register_argc_argv auf "true" gesetzt in der php.ini-Datei | |||
* Curl, GD, GMP, PDO, mbstrings, MySQLi, hash, xml, zip, IntlChar and OpenSSL-Erweiterung | |||
* Curl, GD, GMP, PDO, mbstrings, MySQLi, hash, xml, zip, IntlChar, IDN und OpenSSL-Erweiterung |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hier sollte stattdessen intl
stehen.
DI::l10n()->t('IDN Functions PHP module'), | ||
DI::l10n()->t('Error: IDN Functions PHP module required but not installed.'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDN
-> Intl
private static function idnToAscii(string $uri): string | ||
{ | ||
if (!function_exists('idn_to_ascii')) { | ||
Logger::error('IDN functions are missing.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDN
-> Intl
See #14025 (comment)