php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63997 NIL instead of NULL
Submitted: 2013-01-15 20:56 UTC Modified: 2013-01-16 01:58 UTC
From: soapergem at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: soapergem at gmail dot com
New email:
PHP Version: OS:

 

 [2013-01-15 20:56 UTC] soapergem at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.imap-open#refsect1-function.imap-open-description
---

Right now it says:

resource imap_open ( string $mailbox , string $username , string $password [, int $options = NIL [, int $n_retries = 0 [, array $params = NULL ]]] )

It should say:

resource imap_open ( string $mailbox , string $username , string $password [, int $options = 0 [, int $n_retries = 0 [, array $params = NULL ]]] )

Expected result:
----------------
It should say "0" instead of "NIL" for the default value of $options, unless there's a new data type I'm not aware of.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-16 01:52 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Package: IMAP related +Package: Documentation problem -Assigned To: +Assigned To: aharvey
 [2013-01-16 01:57 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=329153
Log: c-client might think "#define NIL 0" is cool, but PHP doesn't.

Fix doc bug #63997 (NIL instead of NULL).
 [2013-01-16 01:58 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2013-01-16 01:58 UTC] aharvey@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC