php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73216 FILTER_FLAG_NO_RES_RANGE and 10.0.0.0/8 range
Submitted: 2016-10-01 08:13 UTC Modified: 2016-10-01 08:39 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: video dot ice dot power at seznam dot cz Assigned:
Status: Duplicate Package: Filter related
PHP Version: 7.0.11 OS: Linux / DotDeb
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 - 2 = ?
Subscribe to this entry?

 
 [2016-10-01 08:13 UTC] video dot ice dot power at seznam dot cz
Description:
------------
http://stackoverflow.com/questions/39804324/bug-in-php-7-0-11-filter-flag-no-res-range

Test script:
---------------
var_dump(filter_var('10.1.1.1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE));

Expected result:
----------------
string(8) "10.1.1.1"

Actual result:
--------------
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-01 08:39 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2016-10-01 08:39 UTC] requinix@php.net
See bug #72972.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 10:01:29 2024 UTC