Edit report at https://bugs.php.net/bug.php?id=55865&edit=1
ID: 55865 Comment by: enderstd at gmail dot com Reported by: mitallast at gmail dot com Summary: email cyrillic symbols contains are not valid at filter_var function Status: Open Type: Bug Package: *Mail Related Operating System: nix*, mac PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: I think this behaviour is all right. There is a punycode form for IDN domains, and filter_var undestands it well enough, yet not without some issues. But I think punycode is way to go. http://en.wikipedia.org/wiki/Punycode And by the way, "ÑеÑÑ@ÑеÑÑ.ÑÑ" is invalid email anyway, because mailbox can't contain IDN characters, I think it violates some basic SMTP RFC. Valid domain would be like "test@ÑеÑÑ.ÑÑ". Previous Comments: ------------------------------------------------------------------------ [2011-10-07 15:02:43] mitallast at gmail dot com Description: ------------ Php contains filter_var function with predefined constaint FILTER_VALIDATE_EMAIL. This function incorrect validate email with cyrrilic symbols. Error can be at file "ext/filter/logical_filters.c" at function "void php_filter_validate_email(PHP_INPUT_FILTER_PARAM_DECL)" Test script: --------------- <?php $value = "ÑеÑÑ@ÑеÑÑ.ÑÑ"; var_dump(filter_var($value, FILTER_VALIDATE_EMAIL)); Expected result: ---------------- (boolean)true Actual result: -------------- (boolean)false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55865&edit=1