The solution, pointed by Antti, was to change the comparison to check
the type as well:
if ($val !== SOLAR_IGNORE_PARAM) {
...
}
Then you can bound int(0).
I really don't understand why if you just compare $val !=
SOLAR_IGNORE_PARAM, and $val is int(0), the result is false. Really
strange. :-|
rodrigo