Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43545 invoked from network); 14 Nov 2015 15:06:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2015 15:06:18 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:37593] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/90-38992-9ED47465 for ; Sat, 14 Nov 2015 10:06:17 -0500 Received: by wmww144 with SMTP id w144so66251954wmw.0 for ; Sat, 14 Nov 2015 07:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=a8eXVAsp6Kha00MCarw87JIUQACNilv/4OEVeklqi6U=; b=o8vjLjtR+nI1C9ACw3C6p2/tMQiPLm6h/PArmJmBysJhBtnQI3SMJfOYXiIHzKlTme fuki/cU+Fs5Ml1whpONdf+kx3QlooREuT/D+gsHeDMsc+ImTfxnvpinPGNamT50AiQWs pz814yxIRYUu+fdp2sBdi4VWRHXkJj5fAnrHe0SpRFMjiEAkm5MpkkEf9Hmpdm9/6fTi hlMMXyEGeW1XWyy3ChKpL5VK4J4iB9Qu8ws2PD1F1ehwy34ZjreZXP4O5NFD984arBDg xsQQu9DnJft0IrLO5DDqOWfH8lEM1YHmpA5KPM4JYwRljm//SaMswxQsOhkLG7rYKs3C lt2w== MIME-Version: 1.0 X-Received: by 10.194.79.72 with SMTP id h8mr2448158wjx.136.1447513574359; Sat, 14 Nov 2015 07:06:14 -0800 (PST) Received: by 10.27.200.135 with HTTP; Sat, 14 Nov 2015 07:06:14 -0800 (PST) Received: by 10.27.200.135 with HTTP; Sat, 14 Nov 2015 07:06:14 -0800 (PST) In-Reply-To: References: <3187501.to7rK1FKUl@mcmic-probook> <58.47.13519.54409365@pb1.pair.com> <2499781.S8xp2TXu1I@mcmic-probook> <563B5903.3000807@heigl.org> Date: Sat, 14 Nov 2015 16:06:14 +0100 Message-ID: To: come@opensides.be Cc: Andreas Heigl , PHP Internals , Bishop Bettini , oldschooldsl@gmail.com Content-Type: multipart/alternative; boundary=047d7bb0499e68497d052481845d Subject: Re: [PHP-DEV] Re: Small regression in PHP-LDAP From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bb0499e68497d052481845d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2015. nov. 6. 1:07 ezt =C3=ADrta ("Ferenc Kovacs" ): > > > > On Thu, Nov 5, 2015 at 9:53 PM, Adam Howard wrote: >> >> I don't think it is possible to make everyone happy all the time. I think this should be kept for a user code fix. >> > > please don't top post on the php.net mailing lists. > on one hand this change doesn't really make any person happy (apart maybe the ext/ldap maintainers) but already caused headache for people upgrading to a patch release and expecting their code to still work. > I don't think that it is tradeoff worth taking. > > now I've just took the time to look the actual commit which break this feature: > https://github.com/php/php-src/commit/e7af0fe1eb89e40671e86a588aa1b78607b85= 461 > previously we were just passing host and port to ldap_init: > https://github.com/php/php-src/commit/e7af0fe1eb89e40671e86a588aa1b78607b85= 461#diff-baba61601f82518312197f5420a76ae7L346 > and the documentation for ldap_init states that > ldap_open() takes host, the hostname on which the LDAP server is running, and port, the port number to which to connect. If the default IANA-assigned port of 389 is desired, LDAP_PORT should be specified for port. The host parameter may contain a blank-separated list of hosts to try to connect to, and each host may optionally by of the form host:port. If present, the :port overrides the port parameter to ldap_open(). > http://linux.die.net/man/3/ldap_init > > so this wasn't just a bogus feature but php being the glue and the underlying library providing this feature, then when we removed the else block to remove the usage of the now deprecated ldap_open we lost this feature. > it would be fairly trivial to transform host:port formatted hosts to be transformed to the new schema://host:port format required by ldap_initialize (and ldap_is_ldap_url()) instead of just assuming that receiving an url not validated by ldap_is_ldap_url() means that we received a naked hostname C=C3=B4me, what do you think about my suggestion for 5.6? --047d7bb0499e68497d052481845d--