ID: 46837 Updated by: z...@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] z...@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