Repository navigation
Conversation
… $transfer_encoding The stub declares both parameters as ?string and the function treats a null $charset as "use the mail charset of the current language", but 29b02bf parsed them with Z_PARAM_STR when it replaced "s|S!s!sl". So null was deprecated and coerced to "", which is not a valid $charset, and it threw a TypeError with strict_types. Parse both with Z_PARAM_STR_OR_NULL again.
|
@thunderer, thanks for the report. I hope some time soon to have a look at this issue and make sure I understand its background. Is it correct that the behavior of |
|
@alexdowad what I discovered is that up to 7.4 |
|
@thunderer That is very good information, thanks. |
Fixes GH-25832.
The stub declares
?stringfor$charsetand$transfer_encoding, and the function handles a null$charsetby using the mail charset of the current language, but both parameters were parsed withZ_PARAM_STRsince 29b02bf, which replaced"s|S!s!sl". This parses them withZ_PARAM_STR_OR_NULLagain. The test fails without the change.