PHP :: Bug #46731 :: Imap FT_UID handling problem
| Bug #46731 | Imap FT_UID handling problem | ||||
|---|---|---|---|---|---|
| Submitted: | 2008-12-02 16:04 UTC | Modified: | 2008-12-05 16:06 UTC | ||
| From: | zoe dot slattery at googlemail dot com | Assigned: | zoe (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.3CVS-2008-12-02 (snap) | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2008-12-02 16:04 UTC] zoe dot slattery at googlemail dot com
Description: ------------ In imap_fetch_overview() the FT_UID parameter is treated as a bitmap. This means that giving it completely invalid parameters for FT_UID does not cause an error. Suggested fix to imap_fetch_overview() is here: http://pastebin.com/m750e3ed2 Reproduce code: --------------- To run this you would need the imap_include.inc file that is in ~ext/imap/tests. http://pastebin.com/m4da53733 Expected result: ---------------- From this code I'd expect two successful fetches followed by two failures. Actual result: -------------- Four successful fetches, PHP_INT_MAX and PHP_INT_MAX-1 are interpreted as 1 and 0 respectively.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-12-03 01:04 UTC] iliaa@php.net
[2008-12-03 15:16 UTC] zoe dot slattery at googlemail dot com
[2008-12-05 16:06 UTC] zoe dot slattery at googlemail dot com