Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78936 invoked from network); 6 Nov 2015 00:07:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2015 00:07:14 -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 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:35441] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/E7-24765-F2FEB365 for ; Thu, 05 Nov 2015 19:07:11 -0500 Received: by wicll6 with SMTP id ll6so20347608wic.0 for ; Thu, 05 Nov 2015 16:07:09 -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=QrkztNefUXF5EtISMLvJPxUDtwiHP5jHpPiQbwZNpa0=; b=qWVZRwjns0wBoIFe2m6UVGTpwabT8IB8sTg+0NQA2+6oAn95z5RLXb28fPN5pFpd26 1q9/uLavKpC5bagbOtxcngDhW3vSVL5OZVgJnsqgi/spPoQn4NMYLTK+xre5WJYyyroQ 0JV5EqUVkCAHgtGks0lC7vn84XeIcYFiO2CvEwz/qUhamWsCkdIbOpwRgON+YKrAJgQz Ae9cxsv1Aye0vo/h4yH1YlSFsU25ykcfZWyKXEEGySri2KJPxRg/brzaIF6MEPU3peA5 ISCo7YkrOxGUIL7SLqEI49t04AtDWpbWVD4rhZPoW9Vzp8RSAsdbqa/3v1VKxPCIz/m3 HCJw== MIME-Version: 1.0 X-Received: by 10.194.175.164 with SMTP id cb4mr11609517wjc.72.1446768429018; Thu, 05 Nov 2015 16:07:09 -0800 (PST) Received: by 10.27.200.135 with HTTP; Thu, 5 Nov 2015 16:07:08 -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: Fri, 6 Nov 2015 01:07:08 +0100 Message-ID: To: Adam Howard Cc: bishop@php.net, Andreas Heigl , =?UTF-8?Q?C=C3=B4me_Chilliet?= , PHP Internals Content-Type: multipart/alternative; boundary=089e013d1f9048b76f0523d40607 Subject: Re: [PHP-DEV] Re: Small regression in PHP-LDAP From: tyra3l@gmail.com (Ferenc Kovacs) --089e013d1f9048b76f0523d40607 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 thin= k > 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 --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --089e013d1f9048b76f0523d40607--