Le 25/06/2015 17:56, Anatol Belski a écrit :
I've a few questions to this. Can it be implemented with non deprecated 
symbols? Or maybe, can the server side sort not be done with the same function, 
as it's probably the same job? Or it will be really not required? Any info 
about the plans on the openldap side to remove the deprecated symbols (AFAIR 
those are kept already for years)?
No, it can’t be implemented without deprecated symbol, neither with server side sort.
Here is the workflow:
call to ldap_search
call to ldap_sort
call to get the results (for instance ldap_get_entries)

Server sort would have to be set before the search itself. Other tools like php array sorting features will take place after the results. So, this function have no easy drop in replacement, we’ve looked into that. I also asked on openldap mailing list. But it is useless as it can be replaced by either server side sort or classic PHP array sorting functions.
We're currently don't know, how wide this function is used and how much it 
would break. In general, deprecating it if there's a strong reason, could be 
sufficient. If there's a small possibility to keep this function, we should use 
it. Fe maybe it could kept and enabled with a configure option, that way it'll 
be still usable.
It’s mainly a proxy to an openldap function which is deprecated since at least 2007. And the function is useless and easily replacable by other PHP functions.
Any feedback from the ldap users were appreciated here, as well.

Regards

Anatol
Côme

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to