1--TEST-- 2bug 50632, filter_input() does not return default value if the variable does not exist 3--EXTENSIONS-- 4filter 5--FILE-- 6<?php 7$foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array('flags' => FILTER_REQUIRE_SCALAR, 'options' => array('default' => 23))); 8var_dump($foo); 9?> 10--EXPECT-- 11int(23) 12