Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99083 invoked from network); 5 Nov 2015 02:10:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2015 02:10:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=bishop.bettini@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bishop.bettini@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:37193] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/00-33059-58ABA365 for ; Wed, 04 Nov 2015 21:10:13 -0500 Received: by wicfv8 with SMTP id fv8so894835wic.0 for ; Wed, 04 Nov 2015 18:10:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=LMM6IpAxpdFCYwn4hxWWqW1Tng/t98Cq/Qahl5+mXoA=; b=vX80e3DP3R/OxwL+sjLjFY7ught0WCnTUcoY1OEs4A2MtpPwQYjk5nNOEgRXv8jEhl 5TMM7WOLWqiPGJs9BmIkfezGrcGvERf6OuSzkjgud8UKH+Om2/POJqWVC8TZL7ThuZS+ enkj/WQ69exTOdkYYEqd9kwvTXcxMcql186wllVphOKNelNgElc+Ahg1IAN8RHQtfrZn Vh9mNRRmsVya5ezJDFqXoQq9j8/BoG4fFfZ1INI4ktaFG8I2kOo7DKueb16Z4G5Zoc+0 cfYGxId6hzv2kMekcKflb0ZfgUyR+llMMhEbIzvS5QCh5dkqNi1dyEWlhArFWFb3SKhD D0Bw== MIME-Version: 1.0 X-Received: by 10.194.92.138 with SMTP id cm10mr5393413wjb.6.1446689409620; Wed, 04 Nov 2015 18:10:09 -0800 (PST) Reply-To: bishop@php.net Sender: bishop.bettini@gmail.com Received: by 10.194.42.228 with HTTP; Wed, 4 Nov 2015 18:10:09 -0800 (PST) In-Reply-To: <7863331.7prpVflOvN@mcmic-probook> References: <3187501.to7rK1FKUl@mcmic-probook> <7863331.7prpVflOvN@mcmic-probook> Date: Wed, 4 Nov 2015 21:10:09 -0500 X-Google-Sender-Auth: w8E8pDn1IjYsvSucgMi1imU_O6s Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7bd91a0a5c62ed0523c1a00c Subject: Re: [PHP-DEV] Fixing ldap_connect documentation From: bishop@php.net (Bishop Bettini) --047d7bd91a0a5c62ed0523c1a00c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Nov 3, 2015 at 11:00 PM, C=C3=B4me Chilliet wro= te: > What should be clear in the documentation=E2=80=AF: > - The LDAP URI scheme is the recommended way to call ldap_connect > - The ldap:// or ldaps:// is required > - People can use host, port if they do not need SSL > Agreed. > - Second parameter is not used if the first one is an LDAP scheme, so > calling ldap_connect('ldap://localhost', 456) will use default port 389. > I'd prefer this raise a notice, like "Second argument ignored when using URI syntax. Port will default to 389. Did you mean 'ldap://localhost:456' instead?" bishop --047d7bd91a0a5c62ed0523c1a00c--