Edit report at https://bugs.php.net/bug.php?id=65630&edit=1
ID: 65630 Updated by: paj...@php.net Reported by: marvin-wegener at outlook dot com Summary: filter_var() return false with german umlauts -Status: Open +Status: Not a bug Type: Bug Package: Filter related Operating System: Windows/Linux PHP Version: 5.5.3 Block user comment: N Private report: N New Comment: You have to use http://php.net/manual/en/function.idn-to-ascii.php Previous Comments: ------------------------------------------------------------------------ [2013-09-08 21:42:03] cmbecker69 at gmx dot de Unfortunately, the manual[1] is not explicit about that issue, but I assume that FILTER_VALIDATE_EMAIL validates according to RFC 5322, which does not cater for IDNs. If so, this might be regarded as "documentation problem". This bug report is related to request #65385[2]. [1] <http://www.php.net/manual/en/filter.filters.validate.php> [2] <https://bugs.php.net/bug.php?id=65385> ------------------------------------------------------------------------ [2013-09-07 16:16:08] marvin-wegener at outlook dot com Description: ------------ Hello, If I use the following script, the filter_var return always false, but the Domain is possible. It is possible to fix it, that Domains with ÃÃà are exepted? Thanks you in advance! Test script: --------------- <?php if(filter_var('example@öko.de', FILTER_VALIDATE_EMAIL)) { echo 'ok'; } else { echo 'fail'; } ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65630&edit=1