The LDAP extension has two functions that are exactly the same, namely
ldap_modify() and ldap_mod_replace(). I think we should start thinking
of getting rid of one of them. We could start with making one of them
an alias for the other, and state that the alias is deprecated in the
manual. The question then is which one we want to get rid of.

ldap_modify() is a short and descriptive name, and fits well with other
names like ldap_add(), ldap_delete(). But modifications are individual
attributes, not the complete entry.

ldap_mod_replace() fits in with some other function names like
ldap_mod_add() and ldap_mod_delete(). All these three modify only
specific attributes, not the entire entry. And are specific cases of
the more general C LDAP API ldap_modify() function.

Thus I suggest that we make ldap_modify() an alias, and get rid of it
at some point. Possibly replacing it with an entirely new ldap_modify()
at some point if necessary. Does anyone think that we should get of the
other function instead? Or that we shouldn't deprecate any of them?

Stig



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to