Bug #74699 [Com]: Missing range for FILTER_FLAG_NO_RES_RANGE

From: Date: Wed, 07 Jun 2017 11:37:36 +0000
Subject: Bug #74699 [Com]: Missing range for FILTER_FLAG_NO_RES_RANGE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209405@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74699&edit=1 ID: 74699 Comment by: andrew dot nester dot dev at gmail dot com Reported by: brianlmoon@php.net Summary: Missing range for FILTER_FLAG_NO_RES_RANGE Status: Re-Opened Type: Bug Package: Filter related Operating System: Linux PHP Version: 7.1.5 Block user comment: N Private report: N New Comment: I've just added PR fixing this issue. Previous Comments: ------------------------------------------------------------------------ [2017-06-06 16:07:20] brianlmoon@php.net I apologize for mixing up those ranges. Nevertheless, the 224.0.0.0/4 range is reserved for multicast. "The range of addresses between 224.0.0.0 and 224.0.0.255, inclusive, is reserved for the use of routing protocols and other low-level topology discovery or maintenance protocols, such as gateway discovery and group membership reporting. Multicast routers should not forward any multicast datagram with destination addresses in this range, regardless of its TTL." https://www.iana.org/assignments/multicast-addresses/multicast-addresses.xhtml ------------------------------------------------------------------------ [2017-06-06 15:40:08] cmb@php.net > Indeed, you're right. No, nonsense. 240.0.0.0/4 is reserved, but 224.0.0.0/4 is not reserved. Therefore the behavior of your test script is expected. ------------------------------------------------------------------------ [2017-06-06 15:36:05] cmb@php.net > Bug https://bugs.php.net/bug.php?id=73653 mistakenly claimed > that RFC 6890 does not list this as a reserved block. You will > find it on page 12 of that RFC. Indeed, you're right. ------------------------------------------------------------------------ [2017-06-05 20:44:39] brianlmoon@php.net Description: ------------ The patch applied for https://bugs.php.net/bug.php?id=72972 removed the 240.0.0.0/4 block from the reserved list. RFC 6890 [https://tools.ietf.org/html/rfc6890] calls out 240.0.0.0/4 as a "Reserved" block. Bug https://bugs.php.net/bug.php?id=73653 mistakenly claimed that RFC 6890 does not list this as a reserved block. You will find it on page 12 of that RFC. Test script: --------------- $return = filter_var("224.0.0.2", FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE); var_dump($return); Expected result: ---------------- bool(false) Actual result: -------------- string(9) "224.0.0.2" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74699&edit=1

« previous php.bugs (#209405) next »