php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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 ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

reclassified as 'Feature/Change request'.

--Jani


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

--Jani
 [2000-12-04 12:11 UTC] sniper@php.net
Fixed in CVS. Fix will be in PHP 4.0.4.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC