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

[QueryBuilder] Remove unused method parameters to run on HHVM/PHP7 #1164

Merged
merged 1 commit into from
Oct 19, 2014
Merged

[QueryBuilder] Remove unused method parameters to run on HHVM/PHP7 #1164

merged 1 commit into from
Oct 19, 2014

Conversation

AlphaStream
Copy link
Contributor

PHP5 treats the left part of an assignment to a method parameter as an independent local variable, while HHVM/PHP7 treats it as a reference to the method parameter. This leads to the value of the parameter being changed, which, in turn, causes func_get_args() to return not what is expected.

This commit is a part of the effort to make Symfony run flawlessly on HHVM. This issue causes a bunch of Symfony tests to fail on HHVM.

The master is currently broken, so the best thing I could do was to make sure the number of test failures remained the same after the change.

If possible, please merge this to version 2.2 used by Symfony 2.4.

…ocal variables

PHP5 treats the left part of such assignment as an independent local variable, while HHVM treats it as a reference to the method parameter. This leads to the value of the parameter being changed, which, in turn, causes func_get_args() to return not what is expected.
This commit is a part of the effort to make Symfony run flawlessly on HHVM. This issue causes a bunch of Symfony tests to fail on HHVM.
@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3355

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Member

If possible, please merge this to version 2.2 used by Symfony 2.4.

We won't target HHVM compatibility in doctrine/doctrine2:<2.5

@Ocramius Ocramius self-assigned this Oct 19, 2014
Ocramius added a commit that referenced this pull request Oct 19, 2014
[QueryBuilder] Remove unused method parameters to run on HHVM/PHP7
@Ocramius Ocramius merged commit d361ed9 into doctrine:master Oct 19, 2014
@stof
Copy link
Member

stof commented Dec 19, 2014

If possible, please merge this to version 2.2 used by Symfony 2.4.

Symfony does not force you to use Doctrine 2.2. It forces to use at least 2.2

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