On Sun, Feb 3, 2013 at 1:15 PM, Martin Jansen <mar...@divbyzero.net> wrote:
> Back in December I submitted a pull request to make FILTER_VALIDATE_INT > accept +0/-0. That request was merged into php-src: > > https://github.com/php/php-src/pull/248 > > The other day I then stumbled upon a note on > http://www.php.net/manual/en/filter.filters.validate.php saying "Numbers > +0 and -0 are not valid integers but validate as floats.", which makes > me wonder if the previous behavior (rejecting +0/-0) was on purpose > rather than by mistake? > > Or should the documentation be adjusted to reflect the new behavior? > > - Martin > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Well, as far as I can tell that note was there back when FILTER_VALIDATE_INT didn't accept +/-0 as a valid int. I'll go ahead and update the docs to note the change in behavior.