Skip to content

Replace @deprecated with #[\Deprecated] for internal constants #18780

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DanielEScherzer
Copy link
Member

@DanielEScherzer DanielEScherzer commented Jun 5, 2025

Only covers constants declared via stub files, others will be handled separately in a later commit.

Does not include the intl extension, since that had some errors relating to the cpp code; that extension will be updated separately.

Also fix an undefined variable warning in gen_stub.php.

Only covers constants declared via stub files, others will be handled
separately in a later commit.

Does not include the intl extension, since that had some errors relating to the
cpp code; that extension will be updated separately.

Also fix an undefined variable warning in gen_stub.php.
@DanielEScherzer DanielEScherzer force-pushed the constants-stubs-use-deprecated branch from 550eb12 to 2792802 Compare June 6, 2025 00:34
@DanielEScherzer DanielEScherzer marked this pull request as ready for review June 6, 2025 01:13
@nielsdos
Copy link
Member

nielsdos commented Jun 6, 2025

If you look at the filter arginfo you can see that the same strings are allocated twice. Do you think you can avoid this at least within the same arginfo file?

* @cvalue MT_RAND_PHP
*/
#[\Deprecated(since: '8.3', message: 'as it uses a problematic version of Mt19937')]
Copy link
Member

@TimWolla TimWolla Jun 6, 2025

Choose a reason for hiding this comment

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

Suggested change
#[\Deprecated(since: '8.3', message: 'as it uses a problematic version of Mt19937')]
#[\Deprecated(since: '8.3', message: 'as it uses a biased non-standard variant of Mt19937')]

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.

3 participants