[php-src] PR #25833: Fix GH-25832: mb_encode_mimeheader() rejects null for $charset and $transfer_encoding
| From: | thunderer | Date: | Fri, 27 Nov 2026 11:22:45 +0000 |
| Subject: | [php-src] PR #25833: Fix GH-25832: mb_encode_mimeheader() rejects null for $charset and $transfer_encoding | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41110@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25833
Author: thunderer
Fixes GH-25832.
The stub declares
?string for $charset and
$transfer_encoding, and the function handles a null $charset by using the
mail charset of the current language, but both parameters were parsed with Z_PARAM_STR
since 29b02bf290c, which replaced "s|S!s!sl". This parses them with
Z_PARAM_STR_OR_NULL again. The test fails without the change.