Bug #70792 [NEW]: FILTER_VALIDATE_EMAIL have limit for 64 characters on the user part
From: nadavvin at gmail dot com
Operating system: windows
PHP version: 5.6.14
Package: Filter related
Bug Type: Bug
Bug description:FILTER_VALIDATE_EMAIL have limit for 64 characters on the user part
Description:
------------
filter_var with FILTER_VALIDATE_EMAIL failed when user part of email is
longer than 64 characters.
Test script:
---------------
php -r "echo
filter_var('123456789012345678901234567890abcderghjklpoinhyxxxxxxxxxxxxxxxxx@gmailxx.com',
FILTER_VALIDATE_EMAIL) ? 'True' : 'False';"
php -r "echo
filter_var('123456789012345678901234567890abcderghjklpoinhyxxxxxxxxxxxxxxxxxx@gmail.com',
FILTER_VALIDATE_EMAIL) ? 'True' : 'False';"
Expected result:
----------------
True
True
Actual result:
--------------
True
False
--
Edit bug report at https://bugs.php.net/bug.php?id=70792&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70792&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70792&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70792&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70792&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70792&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70792&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70792&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70792&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70792&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70792&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70792&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70792&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70792&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70792&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70792&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70792&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70792&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70792&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70792&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70792&r=mysqlcfg
Thread (4 messages)
- nadavvin at gmail dot com