Re: Fixing ldap_connect documentation

From: Date: Thu, 05 Nov 2015 02:10:09 +0000
Subject: Re: Fixing ldap_connect documentation
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-89070@lists.php.net to get a copy of this message
On Tue, Nov 3, 2015 at 11:00 PM, Côme Chilliet <come@opensides.be> wrote: > What should be clear in the documentation : > - 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

« previous php.internals (#89070) next »