Req #30675 [Opn->Csd]: Why ldap_sort() not using strcoll instead strcmp?

From: Date: Thu, 10 Mar 2016 10:03:27 +0000
Subject: Req #30675 [Opn->Csd]: Why ldap_sort() not using strcoll instead strcmp?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199731@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=30675&edit=1 ID: 30675 Updated by: mcmic@php.net Reported by: aszuts at jobmail dot hu Summary: Why ldap_sort() not using strcoll instead strcmp? -Status: Open +Status: Closed Type: Feature/Change Request Package: LDAP related Operating System: Debian Linux PHP Version: 4.3.9 -Assigned To: +Assigned To: mcmic Block user comment: N Private report: N New Comment: ldap_sort is deprecated since PHP-7. Please use PHP array sorting functions for this: http://php.net/manual/en/array.sorting.php Previous Comments: ------------------------------------------------------------------------ [2004-11-03 16:56:01] aszuts at jobmail dot hu Description: ------------ In ext/ldap/ldap.c line 1554. stay: (ldap_sort_entries(ld->link, (LDAPMessage **) &le->ptr, sflen ? sortfilter : NULL, strcmp) It uses strcmp to compare LDAP result on the client side. IMHO it will be better to use locale sensitive strcoll or give a PHP-API paramater to set comparision function manually! Thanks Atti ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=30675&edit=1

« previous php.bugs (#199731) next »