]> granicus.if.org Git - php/commitdiff
Fix imap stubs
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 31 Dec 2020 18:30:11 +0000 (19:30 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 3 Jan 2021 15:15:46 +0000 (16:15 +0100)
Closes GH-6559.

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

index 7b3d01afa0e0eb1a09682d57ff30d32bbc8f40ad..d8b01988dfbe26ead72eee45d927c222b63c62ea 100644 (file)
@@ -21,7 +21,7 @@ function imap_close($imap, int $flags = 0): bool {}
 function imap_num_msg($imap): int|false {}
 
 /** @param resource $imap */
-function imap_num_recent($imap): int|false {}
+function imap_num_recent($imap): int {}
 
 /** @param resource $imap */
 function imap_headers($imap): array|false {}
@@ -179,7 +179,7 @@ function imap_sort($imap, int $criteria, bool $reverse, int $flags = 0, ?string
 function imap_uid($imap, int $message_num): int|false {}
 
 /** @param resource $imap */
-function imap_msgno($imap, int $message_uid): int|false {}
+function imap_msgno($imap, int $message_uid): int {}
 
 /** @param resource $imap */
 function imap_list($imap, string $reference, string $pattern): array|false {}
index b1ff14da91dde0cc27947c179101f21628ea3519..027baa2d32275fbc5ec2a4abd7b92aa047674c3b 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 326cb0410034aecc702e9397cd88ef91adaa254c */
+ * Stub hash: d6d158112a802d867646b8f85402b8762599180b */
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_open, 0, 0, 3)
        ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
@@ -26,7 +26,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_num_msg, 0, 1, MAY_BE_LONG|
        ZEND_ARG_INFO(0, imap)
 ZEND_END_ARG_INFO()
 
-#define arginfo_imap_num_recent arginfo_imap_num_msg
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_num_recent, 0, 1, IS_LONG, 0)
+       ZEND_ARG_INFO(0, imap)
+ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_headers, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
        ZEND_ARG_INFO(0, imap)
@@ -218,7 +220,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_uid, 0, 2, MAY_BE_LONG|MAY_
        ZEND_ARG_TYPE_INFO(0, message_num, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_msgno, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_msgno, 0, 2, IS_LONG, 0)
        ZEND_ARG_INFO(0, imap)
        ZEND_ARG_TYPE_INFO(0, message_uid, IS_LONG, 0)
 ZEND_END_ARG_INFO()