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

Hotfix 2313 infinite loop #2408

Merged
merged 3 commits into from
Jan 17, 2017

Conversation

BenjaminNolan
Copy link
Contributor

This fixes the String offset cast occurred due to poor parsing of the SQL query being checked by checking if the string being searched for was actually found and then breaking if it is not.

@Ocramius
Copy link
Member

Ocramius commented Jun 7, 2016

Test case required

@BenjaminNolan
Copy link
Contributor Author

Thought I'd submitted this PR back in February, but clearly I didn't, and the error is still there.

…ause scrubbing is working correctly and not entering an infinite loop
@BenjaminNolan
Copy link
Contributor Author

BenjaminNolan commented Jun 7, 2016

Tests added (one for a query with a clause that needs to be scrubbed, and one that just gets reordered without scrubbing anything). Also, this should if not fix issue #2374, then it should at least negate the infinite loop part of the issue, as it breaks out of that loop which their query also triggered.

@deeky666
Copy link
Member

@TwoWholeWorms isn't this a duplicate of #2341 ?

@BenjaminNolan
Copy link
Contributor Author

@deeky666 I'd say that's a duplicate of #2313. :p

@deeky666
Copy link
Member

/cc @billschaller

@kathastaden
Copy link

Hi, I just wanted to know what the status of this PR is? There hasn't been any progress in the last six months but the error still exists.

@billschaller billschaller merged commit 475097d into doctrine:master Jan 17, 2017
@billschaller
Copy link
Member

billschaller commented Jan 17, 2017

LGTM, Thanks!

@deeky666
Copy link
Member

Backporte to 2.5 via 9eb014a and 6314d55

@deeky666 deeky666 mentioned this pull request Jan 17, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants