Bug #81649 [NEW]: imap_delete uses string $message_num, other functions in $message_num
| From: | valeri dot geiser at km-logistik-service dot de | Date: | Mon, 22 Nov 2021 13:58:22 +0000 |
| Subject: | Bug #81649 [NEW]: imap_delete uses string $message_num, other functions in $message_num | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-237911@lists.php.net to get a copy of this message | ||
From: valeri dot geiser at km-logistik-service dot de
Operating system: Debian GNU/Linux
PHP version: 7.4.26
Package: IMAP related
Bug Type: Bug
Bug description:imap_delete uses string $message_num, other functions in $message_num
Description:
------------
imap_delete and imap_undelete use string $message_num in the signature
whereas all other functions use int $message_num:
imap_body
imap_bodystruct
imap_bodystruct
imap_fetchbody
imap_fetchheader
imap_fetchmime
imap_fetchstructure
imap_fetchtext
imap_header
imap_headerinfo
imap_savebody
imap_uid
This is incosistent (at least from user point of view) and leads to
errors.
Expected result:
----------------
Signature consistently using int as type for $message_num
--
Edit bug report at https://bugs.php.net/bug.php?id=81649&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81649&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81649&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81649&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81649&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81649&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81649&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81649&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81649&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81649&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81649&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81649&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81649&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81649&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81649&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81649&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81649&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81649&r=mysqlcfg