php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54764 Missing default value for last parameter of ldap_list()
Submitted: 2011-05-17 10:14 UTC Modified: 2011-05-17 23:46 UTC
From: gwarnants at gmail dot com Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
10 + 11 = ?
Subscribe to this entry?

 
 [2011-05-17 10:14 UTC] gwarnants at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ldap-list#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_list ( 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_list ( resource $link_identifier , string $base_dn , string $filter [, array $attributes [, int $attrsonly [, int $sizelimit [, int $timelimit [, int $deref ]]]]] )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-17 23:36 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=311154
Log: initializer for deref param of ldap_list() (doc #54764)
 [2011-05-17 23:46 UTC] salathe@php.net
-Status: Open +Status: Wont fix
 [2011-05-17 23:46 UTC] salathe@php.net
Revision http://svn.php.net/viewvc/?view=revision&revision=311157 reverts this 
change.

The use of the term "default" in the description does not mean the value which 
should go in the function prototype, rather the default setting of the LDAP_OPT_DEREF option.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC