]> granicus.if.org Git - php/commit
Partially fix #72506: idn_to_ascii for UTS #46 incorrect for long domain names
authorChristoph M. Becker <cmb@php.net>
Tue, 12 Jul 2016 12:42:38 +0000 (14:42 +0200)
committerChristoph M. Becker <cmb@php.net>
Tue, 12 Jul 2016 12:47:14 +0000 (14:47 +0200)
commit76e249d31c51d0b4f8f11507c550ca1eec1dd38a
treec67dd4d9b8f1ebe273cc5bb42e3e6df187acfadd
parent17d4f5c2f83469764de63b221d2314ac3443d8db
Partially fix #72506: idn_to_ascii for UTS #46 incorrect for long domain names

We don't actually fix this issue wrt. the empty $info array, because it is
not clear what this array should contain and we're concerned about the
potential BC break, but at least we fix the inconsistent handling of
resulting domains with 255 bytes (which raise an error), and longer domains
(which just return FALSE), what has to be considered a very minor BC break
if at all.
NEWS
ext/intl/idn/idn.c
ext/intl/tests/bug72506.phpt [new file with mode: 0644]