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