#46837 [Opn->Csd]: imap. Invalid CL_EXPUNGE are not caught.
| From: | zoe@php.net | Date: | Tue, 16 Dec 2008 21:36:53 +0000 |
| Subject: | #46837 [Opn->Csd]: imap. Invalid CL_EXPUNGE are not caught. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132064@lists.php.net to get a copy of this message | ||
ID: 46837
Updated by: zoe@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.3.0alpha3
Assigned To: zoe
New Comment:
fixed
Previous Comments:
------------------------------------------------------------------------
[2008-12-16 21:14:21] zoe@php.net
assigning to myself after discussion with ilia
------------------------------------------------------------------------
[2008-12-11 14:58:36] zoe dot slattery at googlemail dot com
Description:
------------
The value of CL_EXPUNGE is checked in imap_close() but the check just
ensures that any value that ends in a 1 is treated as valid, this is a
similar issue to #46731 and the fix is similar. The value of CL_EXPUNGE
should be either 0 or 32768.
The attached patches do an explicit check for 0 or 32768.
php52: http://pastebin.ca/1282662
php53: http://pastebin.ca/1282664
php6: http://pastebin.ca/1282667
Reproduce code:
---------------
This testcase: http://pastebin.ca/1282641
Expected result:
----------------
Th expected result is shown in the test case
Actual result:
--------------
The actual result from PHP52 is: http://pastebin.ca/1282656
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46837&edit=1