#46884 [Opn->Csd]: Options are not checked in /ext/imap
| From: | zoe@php.net | Date: | Tue, 16 Dec 2008 21:13:13 +0000 |
| Subject: | #46884 [Opn->Csd]: Options are not checked in /ext/imap | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132061@lists.php.net to get a copy of this message | ||
ID: 46884
Updated by: zoe@php.net
Reported By: zoe@php.net
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.3.0alpha3
Assigned To: zoe
New Comment:
fixed
Previous Comments:
------------------------------------------------------------------------
[2008-12-16 21:05:14] zoe@php.net
assigning to myself after discussion with ilia
------------------------------------------------------------------------
[2008-12-16 17:26:19] zoe@php.net
Description:
------------
This is essentially the same problem as described in #46731 and
#46837.
The values of options passed to imap functions are not checked
precisely.
Patches for:
imap_body(),imap_fetchstructure(),imap_fetchbody(),imap_fetchheader()
Are here:
http://www.pastebin.ca/1286942
http://www.pastebin.ca/1286943
http://www.pastebin.ca/1286944
I have also fixed missing initialisation of flags in fetchheader() in
PHP53 and PHP6.
Reproduce code:
---------------
Test cases here
http://www.pastebin.ca/1286945
http://www.pastebin.ca/1286947
http://www.pastebin.ca/1286948
http://www.pastebin.ca/1286949
Expected result:
----------------
As shown in test cases
Actual result:
--------------
PHP_INT_MAX is accepted as a valid option.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46884&edit=1