Re: RFC mysqlnd.localhost_override
| From: | Sebastian Krebs | Date: | Tue, 12 Feb 2013 12:13:26 +0000 |
| Subject: | Re: RFC mysqlnd.localhost_override | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65774@lists.php.net to get a copy of this message | ||
2013/2/12 Asbjørn Sannes <asbjorn.sannes@interhost.no>
>
>
> https://wiki.php.net/rfc/**mysqlnd_localhost_override<https://wiki.php.net/rfc/mysqlnd_localhost_override\
> î%±bóX˜9ët«±,>
>
> I propose we introduce a new option called mysqlnd.localhost_override
> which enables a system administrator or php distributor to configure how
> localhost should be overridden.
>
> I believe it would make life easier on system administrators and
> distributions with varying defaults.
>
> Working patch at:
>
> https://github.com/php/php-**src/pull/275<https://github.com/php/php-src/pull/275>
>
> It is backward compatible by falling back to earlier behaviour if
> mysqlnd.localhost_override is not set
>
> Any comments welcome.
Hi,
On the one side it seems, that PDO already support DSN-alias [1], that
covers your use-case. On the other side I don't think it is useful to
redefine a hostname (and 'localhost' is nothing else than a hostname),
especially because it is only in this context, but in other contexts
'localhost' remains the same. localhost is localhost and everything else
only leads to confusion.
Regards,
Sebastian
[1] php.net/pdo.configuration#ini.pdo.dsn
>
>
> --
> Vennlig hilsen
> for Interhost AS
>
> Asbjørn Sannes
> konsulent
>
> www.interhost.no
> mail@interhost.no
> +47 21 42 01 12
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
github.com/KingCrunch