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
 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Jun 14 22:01:23 2021 UTC