Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86872 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4767 invoked from network); 25 Jun 2015 15:56:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2015 15:56:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:55277] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/54-16095-AC42C855 for ; Thu, 25 Jun 2015 11:56:59 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id EF34C23D629F; Thu, 25 Jun 2015 17:56:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.5 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from w530phpdev (pD9FD2E4C.dip0.t-ipconnect.de [217.253.46.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 82D4223D615B; Thu, 25 Jun 2015 17:56:52 +0200 (CEST) To: "'Andreas Heigl'" , Cc: =?utf-8?Q?'C=C3=B4me_BERNIGAUD'?= , "'Kalle Sommer Nielsen'" , "'Ferenc Kovacs'" References: <558ACF4D.6030506@heigl.org> In-Reply-To: <558ACF4D.6030506@heigl.org> Date: Thu, 25 Jun 2015 17:56:51 +0200 Message-ID: <07fd01d0af5f$8f648d70$ae2da850$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQKMcA8nxQNvo5Y2GC1s9RHT4hMt3JxF1wJA Content-Language: en-us Subject: RE: [PHP-DEV] Deprecating ldap_sort From: anatol.php@belski.net ("Anatol Belski") Hi Andreas, > -----Original Message----- > From: Andreas Heigl [mailto:andreas@heigl.org] > Sent: Wednesday, June 24, 2015 5:40 PM > To: internals@lists.php.net > Cc: C=C3=B4me BERNIGAUD > Subject: [PHP-DEV] Deprecating ldap_sort >=20 > Hi everyone. >=20 > C=C3=B4me Bernigaud and myself are currently cleaning up the = LDAP-Extension > (Well, C=C3=B4me is doing the hard work and I'm trying to assist in = some > way). We would like to bring it in line with a more recent version of > the OpenLDAP-lib. Currently the plan is to require OpenLDAP 2.4 as the > minimum version to build ext/ldap against. This is on a very good way = [1]. >=20 > But in said OpenLDAP-library the ldap_sort-function already has been > marked as deprecated [2]. Therefore we'd like to at least mark PHPs > ldap_sort function as deprecated also. >=20 > The current rewrite will make it possible to later use the = server-sided > sort functionality so there will be only limited need for the current > (client sided) ldap_sort function. >=20 > As it's a BC-break to remove the ldap_sort function will we have to > setup an RFC for that? Or is it a plain "mark it deprecated in PHP7 = and > throw it away in PHP8" kind of decission? And will it be possible to = get > that marked deprecated in 7 at all? >=20 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)? 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.=20 Any feedback from the ldap users were appreciated here, as well. Regards Anatol