Skip to content

Conversation

@GSokol
Copy link

@GSokol GSokol commented Mar 11, 2016

No description provided.

@nikic
Copy link
Member

nikic commented Mar 11, 2016

Would you mind also adding a test for this?

@nikic nikic added the Bug label Mar 11, 2016
@GSokol
Copy link
Author

GSokol commented Mar 11, 2016

@nikic, may I write just Zend/tests/bug71767/bug71767.phpt ?

@nikic
Copy link
Member

nikic commented Mar 11, 2016

@GSokol As this issue is exposed through reflection, ext/reflection/tests/bug71767.phpt would probably be the best place.

@marcioAlmada
Copy link
Contributor

@GSokol this is probably affecting closures too.

@marcioAlmada
Copy link
Contributor

See https://3v4l.org/1K66L, and the same is for static closures https://3v4l.org/0KFkR.

dstogov and others added 3 commits March 11, 2016 22:43
- SPEC(NO_CONST_CONST) may prevent codegeneration for handlers like ADD_SPEC_CONST_CONST. Compiler and optimizaer should care about constants folding.
- SPEC(COMMUTATIVE) generate only single handler instead of two eqivalents like ADD_SPEC_CONST_CV and ADD_SPEC_CV_CONST. Compiler and optimizer should care avout operands swapping.
@GSokol
Copy link
Author

GSokol commented Mar 11, 2016

@nikic @marcioAlmada done

@nikic
Copy link
Member

nikic commented Mar 11, 2016

Merged as ccc5150. Thanks!

@nikic nikic closed this Mar 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants