-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Update gen_stub to support #if around classes #8736
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
Conversation
Can you please check if your changes work with sensitive parameters? The |
@kocsismate Thanks for this comment. I moved the attribute initialisation of methods inside the class registration, so that now the Also I noticed after regenerating the files that sometime we do use four spaces and sometime tab as indent. I did not change that yet and will do the change in a commit after this change to make this consistant. |
As the author of #8352 this certainly makes sense to me, as it makes the API much more comfortable to use (provided that it still works correctly 😃). |
@kocsismate FYI this is the future commit for which i'm going to need this feature Curl URL Api |
FWIW, that would implement https://bugs.php.net/77991. |
#8352 is now merged. There's a test in ext/pdo that checks that the attribute works properly for class methods, so if that one passes it should be good. |
0e185dc
to
ec7bf0f
Compare
I rebased on master and everything seems to work except for indentation. But since it's a separate issue I created an other PR #8765 |
bf6e7ed
to
b8896f4
Compare
b8896f4
to
0dcf681
Compare
@kocsismate I rebased on master and regenerated all the files. Everything seems to work well. What do you think about this change ? |
There is still issue with the optimizer func info. Please run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work!
0dcf681
to
1bcd8d3
Compare
@kocsismate Yep I didn't fixed it on this branch but it's due to the fact that the branch was only rebased on the commit without generation on master. I rebased it and merged it ! Thanks for your review |
I have a case where I only want to create a class on some conditions
This change will add the appropriate conditions around the
zend_function_entry
andzend_class_entry