Uh oh!
There was an error while loading. Please reload this page.
Replace @deprecated with #[\Deprecated] for internal constants - #18780
Conversation
550eb12 to
2792802Comparendossche
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? |
Uh oh!
There was an error while loading. Please reload this page.
DanielEScherzer
commented
Jun 9, 2025
Not easily - I'll add it to my list of improvements for gen_stub.php, but this isn't anything new |
TimWolla
commented
Jun 9, 2025
It should probably be safe to just intern them all. They are always allocated on start-up, so the memory will be used either way. Interning should just reduce it, no? |
DanielEScherzer
commented
Jun 9, 2025
Probably, and I will definitely look into this, but I'd prefer not to block the rest of the patch |
ndossche
commented
Jun 9, 2025
Yes I agree. |
DanielEScherzer
commented
Jun 9, 2025
Pinky promise - I have #18665 and a few other bits of cleanup in mind that shouldn't change any of the generated arginfo files, and then I'll address the improvements that will affect arginfo (like adding interned strings) |
Code owner approvals:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DanielEScherzer
commented
Jun 20, 2025
Barring any further review I plan to merge this in the next few days |
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.
This is already fixed differently in master.
e1037b1 to
f7cfe2aCompare
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.