ID:               46884
 Updated by:       z...@php.net
 Reported By:      z...@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] z...@php.net

assigning to myself after discussion with ilia

------------------------------------------------------------------------

[2008-12-16 17:26:19] z...@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

Reply via email to