[php-src] PR #20770: curl: Deduplicate features array and fix coding style
| From: | thg2k | Date: | Tue, 23 Dec 2025 17:03:24 +0000 |
| Subject: | [php-src] PR #20770: curl: Deduplicate features array and fix coding style | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34364@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20770
Author: thg2k
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.