php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46837 imap. Invalid CL_EXPUNGE are not caught.
Submitted: 2008-12-11 14:58 UTC Modified: 2009-05-01 21:27 UTC
From: zoe dot slattery at googlemail dot com Assigned: zoe (profile)
Status: Closed Package: IMAP related
PHP Version: 5.3.0alpha3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zoe dot slattery at googlemail dot com
New email:
PHP Version: OS:

 

 [2008-12-11 14:58 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-16 21:14 UTC] zoe@php.net
assigning to myself after discussion with ilia
 [2008-12-16 21:36 UTC] zoe@php.net
fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 17:01:28 2025 UTC