Doc #78030 [Opn->Csd]: imap_open() expects parameter 6 to be array, null given

From: Date: Sat, 18 May 2019 06:59:35 +0000
Subject: Doc #78030 [Opn->Csd]: imap_open() expects parameter 6 to be array, null given
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16664@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78030&edit=1 ID: 78030 Updated by: cmb@php.net Reported by: jshah4517 at gmail dot com Summary: imap_open() expects parameter 6 to be array, null given -Status: Open +Status: Closed Type: Documentation Problem Package: IMAP related Operating System: Linux PHP Version: 7.3.5 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2019-05-18 06:58:34] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=347436 Log: Fix #78030: imap_open() expects parameter 6 to be array, null given For all practical purposes, the default value is actually an empty array. ------------------------------------------------------------------------ [2019-05-17 22:35:55] jshah4517 at gmail dot com 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78030&edit=1

« previous php.doc.bugs (#16664) next »