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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Sat Dec 21 12:01:31 2024 UTC