Remove unnecessary usage of CONST_CS#9685
Conversation
|
This seems to work correctly - the Not related to this PR specifically, but speaking of which
|
| CLSCTX ctx = CLSCTX_SERVER; | ||
| HRESULT res = E_FAIL; | ||
| int mode = COMG(autoreg_case_sensitive) ? CONST_CS : 0; | ||
| int mode = 0; |
There was a problem hiding this comment.
I wonder if we should just inline that 0.
There was a problem hiding this comment.
Yes, I changed this. We can also simplify function php_com_import_typelib with the removal of CONST_CS, but I'm now learning how PHP source code works and don't want to rush.
There was a problem hiding this comment.
Thank you! I don't think that we can simplify php_com_import_typelib, since the mode is checked there for CONST_PERSISTENT which is still supported.
|
Thank you! I'm in favor of dropping the use of |
|
To be honest, I think the majority of the changes are unnecessary, since the In my opinion, it's ok to remove the |
|
@kocsismate, thanks for review. I didn't realize that you already remove this constant. I close my branch then. :) |
|
No, you don't have to close this pr 🙂 some of the usages can still be removed! |
|
@kocsismate , I'm sorry, but I didn't understand. I thought that my changes are necessary, because you will cover it during your migration to stubs as you did inside this PR: #9731 I'm still not well oriented in PHP source code and I didn't remove all the cases at once. Just the trivial once to not break anything. If you need any help of me with migration then I would be glad to help. |
|
@jorgsowa, the changes directly relating to |
cmb69
left a comment
There was a problem hiding this comment.
Thank you! This looks mostly good to me (I left some comments), but maybe @kocsismate wants to have a look, too.
|
Thank you! |
Hello everyone,
this PR removes the majority of the usage of the
CONST_CSin trivial cases which is not necessary anymore.Kind regards