Skip to content

Fix #71767: ReflectionMethod::getDocComment returns the wrong comment #1801

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

Closed
wants to merge 4 commits into from

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