Re: Small regression in PHP-LDAP
| From: | Andrea Faulds | Date: | Tue, 03 Nov 2015 19:07:33 +0000 |
| Subject: | Re: Small regression in PHP-LDAP | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89056@lists.php.net to get a copy of this message | ||
Hi Andreas,
Andreas Heigl wrote:
+1 on that solution. Just throwing "host:port" onto something doesn't help anyone. Try that with "www.google.com:443" in your favourite browser. Most will give you an error (if it's not port 80). So those people that try it will eventually read the documentation on php.net and then see that it's not supported.If you give the port number for a non-HTTP TCP application then yes, your browser will spit an error back at you, because HTTP is the implicit URI scheme. That doesn't mean hostname:port is wrong, it's perfectly valid for HTTP. Similarly, I could give my LDAP URI as google.com:80 and get an error, but I don't think that's a fault with hostname:port. The PHP interpreter itself uses it for HTTP: $ php -S localhost:8000 I'm unconvinced. Thanks. -- Andrea Faulds http://ajf.me/