filter_var
is new compared to PHP 5.2. You encountered a known error: https://bugs.php.net/bug.php?id=49510 Feel free to vote or comment on this error.
You are trying to do something like this:
$v = filter_var($v, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)
There are a number of cheap workarounds:
$v = $v===FALSE ? FALSE : filter_var($v, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE)
source share