Skip to content

Declare ext/zend_test constants in stubs #9135

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
Jul 25, 2022

Conversation

kocsismate
Copy link
Member

No description provided.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change LGTM.

@@ -295,6 +295,11 @@ static const zend_function_entry class_ZendTestNS2_ZendSubNS_Foo_methods[] = {
ZEND_FE_END
};

static void register_test_symbols(int module_number)
{
REGISTER_LONG_CONSTANT("ZEND_TEST_DEPRECATED", 42, CONST_CS | CONST_PERSISTENT | CONST_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds CONST_CS which is a NOOP. Should CONST_CS be removed from the stub generator?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. I've already added it to my to-do list to remove const_cs, and will implement it as soon as all constants are migrated.

@kocsismate kocsismate merged commit f4b5051 into php:master Jul 25, 2022
@kocsismate kocsismate deleted the const-test branch July 25, 2022 18:56
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.

2 participants