Doc #54765 [Opn->Wfx]: Missing default value for last parameter of ldap_read(
| From: | salathe@php.net | Date: | Tue, 17 May 2011 21:55:50 +0000 |
| Subject: | Doc #54765 [Opn->Wfx]: Missing default value for last parameter of ldap_read( | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6473@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54765&edit=1
ID: 54765
Updated by: salathe@php.net
Reported by: gwarnants at gmail dot com
Summary: Missing default value for last parameter of
ldap_read(
-Status: Open
+Status: Wont fix
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
LDAP_DEREF_NEVER is not the default value for the function parameter. If
$deref is
not specified, the existing LDAP_OPT_DEREF value is used (if set),
falling back to
the default value for that option which is LDAP_DEREF_NEVER.
Previous Comments:
------------------------------------------------------------------------
[2011-05-17 10:18:35] gwarnants at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ldap-read#Description
---
According to parameters description, default value for parameter $deref
should be set to constant LDAP_DEREF_NEVER in the prototype.
Regards,
Geoffray
Expected result:
----------------
resource ldap_read ( resource $link_identifier , string $base_dn ,
string $filter [, array $attributes [, int $attrsonly [, int $sizelimit
[, int $timelimit [, int $deref = LDAP_DEREF_NEVER ]]]]] )
Actual result:
--------------
resource ldap_read ( resource $link_identifier , string $base_dn ,
string $filter [, array $attributes [, int $attrsonly [, int $sizelimit
[, int $timelimit [, int $deref ]]]]] )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54765&edit=1