Skip to content

ext/filter: Accept +0 and -0 as valid integers - #248

Closed
mj wants to merge 2 commits into
php:masterfrom
mj:filter-validate-int
Closed

mj wants to merge 2 commits into
php:masterfrom
mj:filter-validate-int

Conversation

@mj

@mj mj commented Dec 26, 2012

Copy link
Copy Markdown
Member

This PR fixes bug #54096 by making FILTER_VALIDATE_INT accept +0/-0 as a valid integer akin to the behavior of e.g. var_dump.

@lstrojny

Copy link
Copy Markdown
Contributor

Looks good. I'm going to merge this later.

@php-pulls

Copy link
Copy Markdown

Comment on behalf of lstrojny at php.net:

Merged into 5.4, 5.5 and master.Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants