|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8054 ldap_get_entries returns nothing when results count = 0
Submitted: 2000-11-30 10:18 UTC Modified: 2000-12-04 12:11 UTC
From: christian at architech dot no Assigned: sniper (profile)
Status: Closed Package: LDAP related
PHP Version: 4.0.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: christian at architech dot no
New email:
PHP Version: OS:


 [2000-11-30 10:18 UTC] christian at architech dot no
I've upgraded to PHP 4.0.2 (previously running PHP3).

Since that I have a problem with the ldap_get_entries function which returns nothing when there is 0 entries, instead of returning an array with "count" index set to 0.
Thus the result is equivalent to false.

Why did the behaviour of this function changed since PHP3 ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-30 21:28 UTC]
I think it's better this way. Why return anything if there isn't anything 
to be returned? 

reclassified as 'Feature/Change request'.


 [2000-12-04 09:55 UTC]
This is actually a bug. I will fix this later this week.

 [2000-12-04 12:11 UTC]
Fixed in CVS. Fix will be in PHP 4.0.4.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 02:01:28 2024 UTC