Hi, On Monday 22 September 2008, Jan Schmidle wrote: > hi once again, > > i had bin quite in a hurry, so i didn't recognise that this mail is for > the bugtracking system. > So now once again in english ;) > > I rewrote the script from lincoln: > > 1 <?php > 2 echo "test iso: "; > 3 print idn_to_ascii > ("mãeíóúáćñêâîõÔúnmkjqwertzuiopasdfghjklöqwerztuiopasdfghjklmsksu.org", > "iso-8859-1") . "<br />"; > 4 echo "test utf: "; > 5 print idn_to_ascii > ("çãéíóúáćñêâîõÔúnmkjqwertzuiopasdfghjklöqwerztuiopasdfghjklmsksu.org", > "utf-8"); > 6 ?> > > > now we are getting the segfault. >
The patch[1] at the merged bug report does fix the segfault; but it doesn't make it work for your test case: without patch: $ php foo test iso: Segmentation fault with patch: $ php foo test iso: <br />test utf: [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=segfault.diff;att=1;bug=491211 > As mentioned in the german mail, i think it occours when the hostpart of > the domain to be generated is longer then > the allowed 63 chars. > > So trying to encode a domain with special chars and length <= 63 chars > that lead to an idn Domain > 63 char > seem to result in the segfault. > > cheers and sorry for the german response ;) Cheers, -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
signature.asc
Description: This is a digitally signed message part.