Skip to content

Conversation

@guyradford
Copy link
Contributor

Strings with spaces at the begining and or end were handled differently. This fix makes both now fail.

Copy link
Contributor

@localheinz localheinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rquadling rquadling merged commit bb13ac6 into beberlei:master Sep 8, 2017
@acasademont
Copy link

HI @guyradford and @localheinz we're having problems with this change. A string '01' or any string with a leading 0 will not be considered integerish, which IMHO is wrong. Is this the expected behavior?

@rquadling
Copy link
Contributor

If the intent is for it to be an octal string, then according to http://php.net/manual/en/language.types.integer.php#111523, this is not the case.

intval() does correctly identify an integer from "0123". So this is a bug.

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.

4 participants