php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75619 FILTER_FLAG_EMAIL_UNICODE is unavailable
Submitted: 2017-12-04 10:09 UTC Modified: 2017-12-05 13:19 UTC
From: lionjsa at ngs dot ru Assigned: cmb (profile)
Status: Not a bug Package: filter (PECL)
PHP Version: 5.6.32 OS: Debian GNU/Linux 8 3.16.0-4-amd6
Private report: No CVE-ID: None
 [2017-12-04 10:09 UTC] 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-12-04 10:40 UTC] requinix@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem -Package: Unknown/Other Function +Package: filter
 [2017-12-04 10:40 UTC] 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-05 13:19 UTC] cmb@php.net
-Status: Verified +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2017-12-05 13:19 UTC] 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>
 [2019-08-12 10:35 UTC] kawewong at gmail dot com
Please add the note in this page. https://www.php.net/manual/en/filter.filters.validate.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 18:01:34 2024 UTC