Doc #75619 [Com]: FILTER_FLAG_EMAIL_UNICODE is unavailable
| From: | kawewong at gmail dot com | Date: | Mon, 12 Aug 2019 10:35:20 +0000 |
| Subject: | Doc #75619 [Com]: FILTER_FLAG_EMAIL_UNICODE is unavailable | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16880@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75619&edit=1
ID: 75619
Comment by: kawewong at gmail dot com
Reported by: lionjsa at ngs dot ru
Summary: FILTER_FLAG_EMAIL_UNICODE is unavailable
Status: Not a bug
Type: Documentation Problem
Package: filter
Operating System: Debian GNU/Linux 8 3.16.0-4-amd6
PHP Version: 5.6.32
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Please add the note in this page. https://www.php.net/manual/en/filter.filters.validate.php
Previous Comments:
------------------------------------------------------------------------
[2017-12-05 13:19:48] cmb@php.net
That is documented in the changelog of the filter flags[1][2], so
this is not a bug.
[1] <http://www.php.net/manual/en/filter.filters.flags.php#filter.filters.flags>
[2] <http://www.php.net/manual/ru/filter.filters.flags.php#filter.filters.flags>
------------------------------------------------------------------------
[2017-12-04 10:40:25] requinix@php.net
FILTER_FLAG_EMAIL_UNICODE was added in PHP 7.1.
Missing from the EN docs so not a translation issue.
------------------------------------------------------------------------
[2017-12-04 10:09:13] lionjsa at ngs dot ru
Description:
------------
according the documentation http://php.net/manual/ru/filter.filters.validate.php
I can use FILTER_FLAG_EMAIL_UNICODE, but when I try to use it, I get a notice
PHP Notice: Use of undefined constant FILTER_FLAG_EMAIL_UNICODE - assumed
'FILTER_FLAG_EMAIL_UNICODE' in Command line code on line 1
string(25) "FILTER_FLAG_EMAIL_UNICODE"
Test script:
---------------
php -r "var_dump(FILTER_FLAG_EMAIL_UNICODE);"
Expected result:
----------------
int(...)
Actual result:
--------------
PHP Notice: Use of undefined constant FILTER_FLAG_EMAIL_UNICODE - assumed
'FILTER_FLAG_EMAIL_UNICODE' in Command line code on line 1
string(25) "FILTER_FLAG_EMAIL_UNICODE"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75619&edit=1