Doc #78030 [NEW]: imap_open() expects parameter 6 to be array, null given
| From: | jshah4517 at gmail dot com | Date: | Fri, 17 May 2019 22:35:55 +0000 |
| Subject: | Doc #78030 [NEW]: imap_open() expects parameter 6 to be array, null given | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-16663@lists.php.net to get a copy of this message | ||
From: jshah4517 at gmail dot com
Operating system: Linux
PHP version: 7.3.5
Package: IMAP related
Bug Type: Documentation Problem
Bug description:imap_open() expects parameter 6 to be array, null given
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 bug report at https://bugs.php.net/bug.php?id=78030&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78030&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78030&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78030&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78030&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78030&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78030&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78030&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78030&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78030&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78030&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78030&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78030&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78030&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78030&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78030&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78030&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78030&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78030&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78030&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78030&r=mysqlcfg