]> granicus.if.org Git - php/commitdiff
Change imap_mail_compose() $body param to $bodies
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 10 Oct 2020 11:49:41 +0000 (13:49 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 10 Oct 2020 15:39:54 +0000 (17:39 +0200)
This parameter actually expects an array of bodies, so we should name
it accordingly.

Closes GH-6313.

ext/imap/php_imap.stub.php
ext/imap/php_imap_arginfo.h

index 5505a60f6bef0a104c42816689fdb6d373245d2c..62ac96d59f33c2ea314a3a0ac49703224f6d7b1f 100644 (file)
@@ -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 {}
index 22bf62ffb2ebfafd85a5ed92999e1d5364ec375e..409b11894c08d2007062c8f4481ec4227e7ccc98 100644 (file)
@@ -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)
@@ -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)