Skip to content

Commit 7f337a4

Browse files
hbrechtondrejmirtes
authored andcommitted
imap_delete / imap_undelete: correction
imap_delete and imap_undelete both have parameter $message_num of type string. All other imap_* - functions have $message_num as int and $message_nums as string. For imap_delete and imap_undelete, it really should be string $message_nums. I also opened a bug at php for this. php doc has correct type, but comment is wrong and parameter names should be changed to be consistent for all imap_*-functions. https://bugs.php.net/bug.php?id=81649
1 parent b8b7eb5 commit 7f337a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/functionMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5208,7 +5208,7 @@
52085208
'imap_close' => ['bool', 'stream_id'=>'resource', 'options='=>'int'],
52095209
'imap_create' => ['bool', 'stream_id'=>'resource', 'mailbox'=>'string'],
52105210
'imap_createmailbox' => ['bool', 'stream_id'=>'resource', 'mailbox'=>'string'],
5211-
'imap_delete' => ['bool', 'stream_id'=>'resource', 'msg_no'=>'int', 'options='=>'int'],
5211+
'imap_delete' => ['bool', 'stream_id'=>'resource', 'msg_no'=>'string', 'options='=>'int'],
52125212
'imap_deletemailbox' => ['bool', 'stream_id'=>'resource', 'mailbox'=>'string'],
52135213
'imap_errors' => ['array|false'],
52145214
'imap_expunge' => ['bool', 'stream_id'=>'resource'],
@@ -5265,7 +5265,7 @@
52655265
'imap_thread' => ['array|false', 'stream_id'=>'resource', 'options='=>'int'],
52665266
'imap_timeout' => ['mixed', 'timeout_type'=>'int', 'timeout='=>'int'],
52675267
'imap_uid' => ['int|false', 'stream_id'=>'resource', 'msg_no'=>'int'],
5268-
'imap_undelete' => ['bool', 'stream_id'=>'resource', 'msg_no'=>'int', 'flags='=>'int'],
5268+
'imap_undelete' => ['bool', 'stream_id'=>'resource', 'msg_no'=>'string', 'flags='=>'int'],
52695269
'imap_unsubscribe' => ['bool', 'stream_id'=>'resource', 'mailbox'=>'string'],
52705270
'imap_utf7_decode' => ['string|false', 'buf'=>'string'],
52715271
'imap_utf7_encode' => ['string', 'buf'=>'string'],

0 commit comments

Comments
 (0)