Skip to content

Deprecate case-insensitive constants via typelib import#3833

Closed
cmb69 wants to merge 1 commit into
php:PHP-7.4from
cmb69:com-const-ci-depr
Closed

Deprecate case-insensitive constants via typelib import#3833
cmb69 wants to merge 1 commit into
php:PHP-7.4from
cmb69:com-const-ci-depr

Conversation

@cmb69

@cmb69 cmb69 commented Feb 14, 2019

Copy link
Copy Markdown
Member

As of PHP 7.3.0, case-insensitive constants are deprecated. We catch
up on this with regard to ext/com_dotnet, which allows to import
constants from typelibs, by triggering a deprecation notice whenever
com_load_typelib() is called with $case_sensitive being false,
and whenever com.autoregister_casesensitive is set to false,
regardless of whether there are actually constants in the typelib which
would be imported.

As of PHP 7.3.0, case-insensitive constants are deprecated.  We catch
up on this with regard to ext/com_dotnet, which allows to import
constants from typelibs, by triggering a deprecation notice whenever
`com_load_typelib()` is called with `$case_sensitive` being `false`,
and whenever `com.autoregister_casesensitive` is set to `false`,
regardless of whether there are actually constants in the typelib which
would be imported.
@cmb69 cmb69 requested a review from nikic February 14, 2019 17:49

@nikic nikic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for taking care of this!

@cmb69

cmb69 commented Feb 15, 2019

Copy link
Copy Markdown
Member Author

Thanks! Applied as fae2246. Will follow-up with a respective PR for master.

@cmb69 cmb69 closed this Feb 15, 2019
@cmb69 cmb69 deleted the com-const-ci-depr branch February 15, 2019 12:11
@carusogabriel carusogabriel modified the milestone: PHP 8.0 May 29, 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.

3 participants