1--TEST-- 2Bug #61700 (FILTER_FLAG_IPV6/FILTER_FLAG_NO_PRIV|RES_RANGE failing) 3--EXTENSIONS-- 4filter 5--FILE-- 6<?php 7var_dump(filter_var('::ffff:192.168.1.1', FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)); 8var_dump(filter_var('::ffff:192.168.1.1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE)); 9var_dump(filter_var('0:0:0:0:0:0:0:1', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE)); 10?> 11--EXPECT-- 12bool(false) 13string(18) "::ffff:192.168.1.1" 14bool(false) 15