ID:               43402
 User updated by:  nobody at example dot org
 Reported By:      nobody at example dot org
 Status:           Open
 Bug Type:         Filter related
 Operating System: N/A
 PHP Version:      5.2.5
 New Comment:

Adding test.


Previous Comments:
------------------------------------------------------------------------

[2007-11-25 22:22:59] nobody at example dot org

Description:
------------
The regex used in php_filter_validate_email does not permit all valid
atom chars from RFC2822 (eg: ASCII 61, 63). 

Reproduce code:
---------------
<?php

$valid="!#$%&'*+-/=.?^_`{|[EMAIL PROTECTED]";

echo filter_var($valid, FILTER_VALIDATE_EMAIL)? 'Valid': 'Invalid',
"\n";


Expected result:
----------------
Valid

Actual result:
--------------
Invalid


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43402&edit=1

Reply via email to