Bug #68659 [NEW]: VALIDATE_EMAIL max length

From: Date: Sat, 27 Dec 2014 00:14:26 +0000
Subject: Bug #68659 [NEW]: VALIDATE_EMAIL max length
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189223@lists.php.net to get a copy of this message
From:             support at camolist dot com
Operating system: 
PHP version:      5.6.4
Package:          Filter related
Bug Type:         Bug
Bug description:VALIDATE_EMAIL max length

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));



-- 
Edit bug report at https://bugs.php.net/bug.php?id=68659&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68659&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68659&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68659&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68659&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68659&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68659&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68659&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68659&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68659&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68659&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68659&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68659&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68659&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68659&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68659&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68659&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68659&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68659&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68659&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68659&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#189223) next »