Skip to content

Conversation

@EmpireBuilder01
Copy link

I ran into a scenario while testing where an "Uninitialized string offset" warning is thrown in the 'midpoint' function when the first key is a substring of the second key.

For instance, if the first key is 'ZzI' and the second key is 'ZzIV', the while loop attempts to access an index that doesn't exist in the first key and throws the warning.

Checking that the index exists first and using $zero otherwise seems to be the fix.

Thanks! Any feedback is welcome.

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.

1 participant