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

[SQL Anywhere] Fix bound parameter references in PHP 7 #3375

Merged
merged 1 commit into from
Dec 5, 2018

Conversation

deeky666
Copy link
Member

@deeky666 deeky666 commented Dec 3, 2018

Q A
Type bug
BC Break no
Fixed issues n/a

Summary

The SQL Anywhere driver suffers the same problem that oci8 did with PHP 7 (See: ae314b1)

Binding multiple parameters in a prepared statement does not work as PHP does not manage the references itself. We have to manage the references to bound parameters ourself, otherwise only the first bound parameter is used and overwritten subsequently.

The tests are revealing the issue already.

@Ocramius
Copy link
Member

Ocramius commented Dec 3, 2018

@deeky666 any way to test this, or do integration tests already fail?

@deeky666
Copy link
Member Author

deeky666 commented Dec 4, 2018

@Ocramius integration tests already fail big time. The other failures are unrelated and need to be fixed separately.

Before: https://pastebin.com/CS0dGa3i
After: https://pastebin.com/yMdUXW3Q

@deeky666 deeky666 modified the milestones: 2.8.1, 2.9.1 Dec 4, 2018
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

👍

@morozov morozov merged commit be45cd4 into doctrine:master Dec 5, 2018
morozov added a commit that referenced this pull request Dec 5, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 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.

None yet

3 participants