79614199

Date: 2025-05-09 13:18:56
Score: 4
Natty:
Report link

Yes, I have similar issue with reserved IPv6. But I have noticed that issue appeared in php 8.4.
For IP:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

The code like this:

filter_var(
            $ip,
            FILTER_VALIDATE_IP,
            FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE
        )

for PHP 8.3 returns bool(false)
but for PHP 8.4 returns

2001:0db8:85a3:0000:0000:8a2e:0370:7334

So does not filter it.

I guess it might be problem of some php settings, but I haven't found any.

Reasons:
  • Blacklisted phrase (1): I have similar
  • Has code block (-0.5):
  • Me too answer (2.5): I have similar issue
  • Low reputation (1):
Posted by: mdco