Skip to content

[Debug] workaround opcache bug mutating "$this" !?! #29349

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

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Nov 27, 2018

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #29347, #29341
License MIT
Doc PR -

This makes absolutely no sense but works around an OPcache bug.

@nicolas-grekas nicolas-grekas merged commit e2b4c8d into symfony:3.4 Nov 27, 2018
nicolas-grekas added a commit that referenced this pull request Nov 27, 2018
…as-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Debug] workaround opcache bug mutating "$this" !?!

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29347
| License       | MIT
| Doc PR        | -

This makes absolutely no sense but works around an OPcache bug.

Commits
-------

e2b4c8d [Debug] workaround opcache bug mutating "$this" !?!
@nicolas-grekas nicolas-grekas deleted the debug-wa branch November 27, 2018 12:46
@stof
Copy link
Member

stof commented Nov 27, 2018

has it been reported upstream so that OPCache gets fixed ?

@fightbulc
Copy link

also 4.1 branch is affected. will it be addressed?

@xabbuh
Copy link
Member

xabbuh commented Nov 27, 2018

@fightbulc We always merge lower branches into more recent branches. So all maintained Symfony versions will get this fix.

@MatTheCat
Copy link
Contributor

@nicolas-grekas I think we got hit by this bug; after some testing it seems it's opcache optimization 5th pass which triggers this. Setting

opcache.optimization_level=0xFFFFFFEF

fixed our issue.

Has this bug been reported PHP side? Do you have an explanation?

@nicolas-grekas
Copy link
Member Author

Nope, i didn't report, please do if you want.

@MatTheCat
Copy link
Contributor

MatTheCat commented Dec 3, 2018

If you were able to devise a workaround I guess you know more about this bug than me. Could you share the knowledge? 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants