Re: Small regression in PHP-LDAP

From: Date: Tue, 03 Nov 2015 18:59:42 +0000
Subject: Re: Small regression in PHP-LDAP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89055@lists.php.net to get a copy of this message
Hi Côme, Côme Chilliet wrote:
The use of ldap_connect(host:port) without ldap:// is not something that is in the tests, and is not explicitely allowed by our documentation: http://php.net/manual/en/function.ldap-connect.php
I don't use LDAP, so maybe it's different here, but accepting both 'scheme://host:post' and 'host:port' is normal for places where URIs are accepted and the scheme can be inferred. It might not have been documented, but it makes sense to me that people thought it would work.
So basically my question is, is that something that should be "fixed" to be consistent with previous PHP version, or should it stay that way as this is what is documented and tested?
I'd argue this is a regression, documented feature or not. Supporting 'host:port' is not a bug, and this has broken existing code, which micro (x.y.Z) versions are not allowed to do. It should be fixed ASAP. Thanks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#89055) next »