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
As promised in #159 (comment), here is the stack trace when running symfony/polyfill-intl-idn against the Unicode test suite. I haven't actually looked at the code to see what may be happening.
STR:
Make sure you disable ext-intl or use the Symfony\Polyfill\Intl\Idn\Idn class directly.
Use idn_to_utf8();
Set the $domain parameter to the first string in the test data set.
Set the $options parameter to 0. (doesn't matter what the value is)
Set the $variant parameter to INTL_IDNA_VARIANT_UTS46 (doesn't matter; same problem using INTL_IDNA_VARIANT_2003)
Rowbot\Idna\Test\SymfonyPolyfill::testToUtf8 with data set Incorrect implementation of hrtime #186 ('xn--a-Ä.pt', 'xn--a-ä.pt', '[P4]', 'xn--xn--a--gua.pt', '', '', '')
Undefined index: �
Rowbot\Idna\Test\SymfonyPolyfill::testToUtf8 with data set Ensure hrtime is monotonic #187 ('xn--a-Ä.pt', 'xn--a-ä.pt', '[P4]', 'xn--xn--a--gua.pt', '', '', '')
Undefined index: A
After taking a quick look, the problem seems to be that $decodeTable only accounts for characters [a-z0-9], but needs to also check for [A-Z] as idn_to_utf8() isn't lowercasing the input. Additionally, $decodeTable needs to account for all bytes in the range 00..7F and check if a byte exists on line 266 and fail if it doesn't exist/isn't [a-zA-Z0-9].
As promised in #159 (comment), here is the stack trace when running
symfony/polyfill-intl-idn
against the Unicode test suite. I haven't actually looked at the code to see what may be happening.STR:
ext-intl
or use theSymfony\Polyfill\Intl\Idn\Idn
class directly.idn_to_utf8()
;Minimal example test case:
The text was updated successfully, but these errors were encountered: