php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54765 Missing default value for last parameter of ldap_read(
Submitted: 2011-05-17 10:18 UTC Modified: 2011-05-17 23:55 UTC
From: gwarnants at gmail dot com Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gwarnants at gmail dot com
New email:
PHP Version: OS:

 

 [2011-05-17 10:18 UTC] 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 ]]]]] )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-17 23:55 UTC] salathe@php.net
-Status: Open +Status: Wont fix
 [2011-05-17 23:55 UTC] salathe@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC