ID:               48042
 User updated by:  m dot vdhulst at puredutch dot nl
 Reported By:      m dot vdhulst at puredutch dot nl
 Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: xp
 PHP Version:      5.2.9
 New Comment:

[UPDATED]

Reproduce code:
---------------
var_dump(filter_var("x...@y", FILTER_VALIDATE_EMAIL));

Expected result:
----------------
bool(false)

Actual result:
--------------
string(3) "x...@y"

as shown this will result to true, but this is not a valid email
adress. 

I would like to see additional flags, f.ex.:
FILTER_VALIDATE_EMAIL_INTERNAL, respectively
FILTER_VALIDATE_EMAIL_INTERNATIONAL.


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

[2009-04-22 10:47:43] ras...@php.net

Did you not read the comment on 47879?  You can have single-letter
top-levels in internal mail systems.

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

[2009-04-22 10:00:38] m dot vdhulst at puredutch dot nl

Description:
------------
Some email addresses that are obviously wrong, pass the validation
with
FILTER_VALIDATE_EMAIL.  You can not have a top level domain with one
character only.

as reported in bugreport http://bugs.php.net/bug.php?id=47879 

nice to have the option to:
select whether it has to check if its an internal address or a non
internal address.

Reproduce code:
---------------
var_dump(filter_var("x...@y.z", FILTER_VALIDATE_EMAIL));


Expected result:
----------------
bool(false)




Actual result:
--------------
string(5) "x...@y.z"


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


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

Reply via email to