Mbstring: implement mb_send_mail() VM builtin (#6548) - #18783
Merged
Merged
Conversation
Register mb_send_mail in ext/mbstring with PHP-in-PHP MIME header/body preparation (MbstringMailProfile + VmMbstring::prepareSendMail) and delegate to the compiler mail() transport. php-src ref: ext/mbstring/mbstring.c. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
mb_send_mail()inext/mbstring/toward php-src parity (#6548).MbstringMailProfile— per-mb_language()mail charset/header/body encodings (php-srclibmbfl/nls)VmMbstring::prepareSendMail()— recipient normalization, RFC 2047 subject encoding, body charset conversion + transfer encoding, MIME header assemblymb_send_mail.php— VM builtin registered inext/mbstring/Module.php; delegates transport to compilermail()(returnsfalsewhen sendmail unavailable, matchingmail_registered.phpt)php-src reference:
ext/mbstring/mbstring.c—PHP_FUNCTION(mb_send_mail)PHP-in-PHP: no new C runtime; reuses
encodeMimeheader(),convertEncoding(), andext/standard/mail.php.Verification
Note:
./script/ci-fast.shspine-sync still reports 14 pre-existing master drift files (sysvsem, convert_uu) unrelated to this diff.Closes #6548
Made with Cursor