Bug #80398 [NEW]: FILTER_FLAG_EMAIL_UNICODE is not working correctly
| From: | shantanoo at gmail dot com | Date: | Sun, 22 Nov 2020 09:14:54 +0000 |
| Subject: | Bug #80398 [NEW]: FILTER_FLAG_EMAIL_UNICODE is not working correctly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-230514@lists.php.net to get a copy of this message | ||
From: shantanoo at gmail dot com
Operating system: OSX 11.0.1
PHP version: 7.4.12
Package: *Regular Expressions
Bug Type: Bug
Bug description:FILTER_FLAG_EMAIL_UNICODE is not working correctly
Description:
------------
म@example.com and मà¥@example.com are valid emails. But
FILTER_FLAG_EMAIL_UNICODE fails for later email.
Test script:
---------------
<?php
$email = 'मà¥@example.com';
print filter_var($email, FILTER_VALIDATE_EMAIL,
FILTER_FLAG_EMAIL_UNICODE);
?>
Expected result:
----------------
Following should be printed.
मà¥@example.com
--
Edit bug report at https://bugs.php.net/bug.php?id=80398&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80398&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80398&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80398&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80398&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80398&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80398&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80398&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80398&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80398&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80398&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80398&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80398&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80398&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80398&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80398&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80398&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80398&r=mysqlcfg