[PHP-DEV] PHP 4.0 Bug #8054 Updated: ldap_get_entries returns nothing when results count = 0 From: sniper <email protected>
Date: 12/04/00

ID: 8054
Updated by: sniper
Reported By: christian <email protected>
Status: Closed
Bug Type: LDAP related
Assigned To: sniper
Comments:

Fixed in CVS. Fix will be in PHP 4.0.4.

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2000-12-04 09:55:30] sniper <email protected>
This is actually a bug. I will fix this later this week.

--Jani

---------------------------------------------------------------------------

[2000-11-30 21:28:28] sniper <email protected>
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-11-30 10:18:08] christian <email protected>
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 ?

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=8054

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>