Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #21. (int)"is" is equal to zero #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix issue #21. (int)"is" is equal to zero #22

wants to merge 1 commit into from

Conversation

cxj
Copy link

@cxj cxj commented May 23, 2018

Faulty condition check only checks for string values. In some cases, $skey is integer 0, and PHP converts the string "is" to integer 0 to do an integer conversion, causing this if check to fail. Following code then dies due to faulty values used for offset.

Faulty condition check only checks for string values.  In some cases, `$skey` is integer 0, and PHP converts the string `"is"` to integer 0 to do an integer conversion, causing this `if` check to fail.  Following code then dies due to faulty values used for offset.
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.

None yet

1 participant