2013/2/12 Asbjørn Sannes <asbjorn.san...@interhost.no> > > https://wiki.php.net/rfc/**mysqlnd_localhost_override<https://wiki.php.net/rfc/mysqlnd_localhost_override> > > 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 > m...@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