-
Notifications
You must be signed in to change notification settings - Fork 8k
curl: Deduplicate features array and fix coding style #20770
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
base: PHP-8.4
Are you sure you want to change the base?
Conversation
Girgias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MSTM but can you split the whitespace changes into a different commit that can be merged separately?
75e306b to
3259696
Compare
Girgias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please target master as these sort of changes can only land in master.
I was targeting 8.4 as this is the branch where the "problem" was first introduced. Is there any chance to get it in there, or maybe 8.5? |
|
You will need to ask RMs for this allowance. @php/release-managers-84 @php/release-managers-85 |
|
IF this is going to be merged into 8.5 (and maybe also 8.4?) (and I'm not sure it is, need to discuss with the other release managers) please omit the whitespace changes and other no-op tweaks, which don't need to be included in older versions. Specifically looking at the changes like
The simplification to deduplicate the features array is one thing, and that may be worth including in 8.4 and 8.5, but the whitespace cleanup and other tweaks definitely doesn't warrant including in the older branches |
|
This is not a critical bug, so personally I would prefer it to be merged into master |
|
I agree, it's best to keep cleanups in master unless this is a bugfix (and if so, it should be minimum necessary changes for the sake of patches). |
Since 8.4 there are two almost identical copies (minus the sentinel) of the features array.
Being an internal static array, there is no need for the sentinel, thus the related check inside the loop is no longer needed.
Simplifies the code, reduces the size of the compile product, and improves maintainability.
Also, some coding style fixes.