Skip to content

Change imap_mail_compose() $body param to $bodies #6313

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/imap/php_imap.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function imap_mail_copy($imap, string $message_nums, string $mailbox, int $flags
/** @param resource $imap */
function imap_mail_move($imap, string $message_nums, string $mailbox, int $flags = 0): bool {}

function imap_mail_compose(array $envelope, array $body): string|false {}
function imap_mail_compose(array $envelope, array $bodies): string|false {}

/** @param resource $imap */
function imap_createmailbox($imap, string $mailbox): bool {}
Expand Down
4 changes: 2 additions & 2 deletions ext/imap/php_imap_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 621ebf610e043ce30c981f4c78ab79358c2aaeb9 */
* Stub hash: c230b35425ab6b707f22158f2e6176c81d4137e9 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_open, 0, 0, 3)
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
Expand Down Expand Up @@ -137,7 +137,7 @@ ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_mail_compose, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, envelope, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, body, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO(0, bodies, IS_ARRAY, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_createmailbox, 0, 2, _IS_BOOL, 0)
Expand Down