#46731 [Opn->Csd]: Imap FT_UID handling problem
| From: | iliaa@php.net | Date: | Wed, 03 Dec 2008 01:04:40 +0000 |
| Subject: | #46731 [Opn->Csd]: Imap FT_UID handling problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131542@lists.php.net to get a copy of this message | ||
ID: 46731
Updated by: iliaa@php.net
Reported By: zoe dot slattery at googlemail dot com
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.3CVS-2008-12-02 (snap)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-12-02 16:04:17] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46731&edit=1