Skip to content

Conversation

nikic
Copy link
Member

@nikic nikic commented Jan 10, 2020

Internal constants can be marked as CONST_DEPRECATED, in which accessing them will throw a deprecation warning.

We've needed this a couple of times in the past, but never bothered to implement it...

cc @cmb69

@Girgias
Copy link
Member

Girgias commented Jan 10, 2020

Does this also cover internal class constants? Asking because I'm not seeing a test for this.

@nikic
Copy link
Member Author

nikic commented Jan 10, 2020

@Girgias Nope, this currently only supports global constants.

cmb69 added a commit to cmb69/php-src that referenced this pull request Jan 16, 2020
Let's wait for PR php#5072, and act accordingly then.
@php-pulls php-pulls closed this in 9ec1ee5 Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants