Re: [PHP-DEV] things I don't like with ldap_search() From: Oyvind Moll (oyvindmo <email protected>)
Date: 01/04/01

* Andi Gutmans <andi <email protected>>
|
| Stig Venaas:
| >
| >So, I want ldap_search() to return a result identifier more often than
| >it currently does, personally I would like it to always return a result
| >identifier unless ldap_search_s() returns -1. Then PHP applications can
| >always get all the information about what happened, and get all error
| >messages, result codes, referrals etc. from the results.
|
| I think it's a problem changing the API of LDAP in a way which will break
| other people's scripts.

Doing a change such as this in a minor version upgrade: yes, I agree.
It's not something people should be confronted with going from 4.0.4
to 4.0.5.

However, I think the current behaviour of ldap_search() is
inconsistent enough that it eventually could and should be changed,
and not by adding another optional parameter.

One could also note that the current documentation of ldap_search() is
vague enough that it doesn't have to be changed even if the behaviour
is changed the way Stig outlines. ;-)

-- 
   Øyvind Møll              <oyvindmo <email protected>>
   Initio IT-løsninger AS   <URL: http://www.initio.no/ >

-- 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>