|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-12-27 00:14 UTC] support at camolist dot com
Description: ------------ following along with http://squiloople.com/2009/12/20/email-address-validation/ (php uses this syntax for the filter) "limiting the entire length to 254 characters" 254 is brought up several times yet the following code validates and is 256 characters caused trouble for mysql setting a column to 254 expecting that to be the max size Test script: --------------- var_dump(filter_var('"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxx.com',FILTER_VALIDATE_EMAIL)); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
including the very article cited in the php source code ("The regex below is based on a regex by Michael Rushton" IE http://squiloople.com/2009/12/20/email-address-validation/) there are many documented reasons behind the 254 limit available all over the internet what is the point of the filter validate email if it lets addresses clearly outside of the standard validate? and while on that topic filter_validate email completely ignores the standards behind allowing unicode in email addresses