Bug #55008 [NEW]: PHP Filter email doesn't work for facebook emails
| From: | zedorg at gmail dot com | Date: | Tue, 07 Jun 2011 14:25:10 +0000 |
| Subject: | Bug #55008 [NEW]: PHP Filter email doesn't work for facebook emails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-161226@lists.php.net to get a copy of this message | ||
From:
Operating system: x86_64 GNU/Linux
PHP version: 5.3.6
Package: Filter related
Bug Type: Bug
Bug description:PHP Filter email doesn't work for facebook emails
Description:
------------
Hello,
it seems the filter function is not working the "new" facebook emails like:
apps+xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@proxymail.facebook.com
where x is an alpha numeric character. It returns false.
This new feature comes from 2010 January, see:
http://www.allfacebook.com/facebook-developers-prepare-to-gain-access-to-user-emails-2010-01
We got a lot of validation failures, cause of this, from facebook connected
users, when we trying to use filter_var on these emails.
A bit strange, cause if I change the "apps+xxxxxxxxxxxxxxx" to
"apps+xxxxxxxxxx", 5 letter shorted, it accepts. However this won't help us
:)
Test script:
---------------
<?php
var_dump(filter_var("apps+xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@proxymail.facebook.com",
FILTER_VALIDATE_EMAIL));
Expected result:
----------------
It should return the given email address.
Actual result:
--------------
Returns false.
--
Edit bug report at http://bugs.php.net/bug.php?id=55008&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=55008&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=55008&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=55008&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=55008&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=55008&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=55008&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=55008&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=55008&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=55008&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=55008&r=support
Expected behavior: http://bugs.php.net/fix.php?id=55008&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=55008&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=55008&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=55008&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55008&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=55008&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=55008&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=55008&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=55008&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=55008&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=55008&r=mysqlcfg