Skip to content

Commit 80f1866

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix #81649: imap_(un)delete accept sequences, not single numbers
2 parents 8c2e8b0 + df5e95b commit 80f1866

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/imap/php_imap.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ function imap_gc(IMAP\Connection $imap, int $flags): bool {}
5757

5858
function imap_expunge(IMAP\Connection $imap): bool {}
5959

60-
function imap_delete(IMAP\Connection $imap, string $message_num, int $flags = 0): bool {}
60+
function imap_delete(IMAP\Connection $imap, string $message_nums, int $flags = 0): bool {}
6161

62-
function imap_undelete(IMAP\Connection $imap, string $message_num, int $flags = 0): bool {}
62+
function imap_undelete(IMAP\Connection $imap, string $message_nums, int $flags = 0): bool {}
6363

6464
function imap_check(IMAP\Connection $imap): \stdClass|false {}
6565

ext/imap/php_imap_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 5f8aa79b08eeca70b934040b8ed3809f249cbef7 */
2+
* Stub hash: 00bd9062b8e8abe8479c184265c3b8863ce2d7b4 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imap_open, 0, 3, IMAP\\Connection, MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
@@ -107,7 +107,7 @@ ZEND_END_ARG_INFO()
107107

108108
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_delete, 0, 2, _IS_BOOL, 0)
109109
ZEND_ARG_OBJ_INFO(0, imap, IMAP\\Connection, 0)
110-
ZEND_ARG_TYPE_INFO(0, message_num, IS_STRING, 0)
110+
ZEND_ARG_TYPE_INFO(0, message_nums, IS_STRING, 0)
111111
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
112112
ZEND_END_ARG_INFO()
113113

0 commit comments

Comments
 (0)