1--TEST-- 2Bug #80584: "0x" and "0X" are considered valid hex numbers by filter_var() 3--EXTENSIONS-- 4filter 5--FILE-- 6<?php 7var_dump(filter_var('0x', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX)); 8var_dump(filter_var('0X', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX)); 9var_dump(filter_var('', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX)); 10var_dump(filter_var('0', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX)); 11?> 12--EXPECT-- 13bool(false) 14bool(false) 15bool(false) 16int(0) 17