|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-05-18 06:58 UTC] cmb@php.net
[2019-05-18 06:59 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2019-05-18 06:59 UTC] cmb@php.net
[2019-05-18 07:00 UTC] salathe@php.net
[2020-02-07 06:05 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 15:00:01 2025 UTC |
Description: ------------ The documentation suggests the default value of the last parameter in the imap_open function is NULL. imap_open ( string $mailbox , string $username , string $password [, int $options = 0 [, int $n_retries = 0 [, array $params = NULL ]]] ) : resource However entering NULL as the value for that parameter produces the following error: imap_open() expects parameter 6 to be array, null given Test script: --------------- imap_open('{imap.example.com:993/imap/ssl}INBOX', 'username', 'password', 0, 0, null); Expected result: ---------------- Based on the documentation, it should allow NULL as a value. Otherwise the documentation should be changed to show this parameter as an empty array.