Re: PHP 4.0 Bug #5823: PHP assumes MySQL unix socket is always available

From: Date: Mon, 31 Jul 2000 13:54:48 +0000
Subject: Re: PHP 4.0 Bug #5823: PHP assumes MySQL unix socket is always available
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-27051@lists.php.net to get a copy of this message
> On the other hand, MySQL is moving target. Client libraries have > to match what's installed as server, e.g. you need 3.23 client > libraries if using MySQL 3.23 server, instead of 3.22 ones. There might > be other issues as well. That's not true at all. The client library PHP ships with can connect to any MySQL server from version 3.21.x through 3.23.x. > And, to be fair, if you are shipping with MySQL libs, you should > ship with msql, pgsql, readline & other libraries required by any > other extension as well :-) Fairness has nothing to do with it. Sheer numbers guide stuff like this. > The code I sent as patch does exactly that (or should be, modulo bugs:) - if > the connect string is 'localhost', it checks whether > the unix socket is there and if not, doesn't use it. If the > unix socket path was explicitly specified, it does nothing > special, so an error would be written to user further down. Sounds to me like you should be submitting your patch to the MySQL folks. That would be the correct place for this check. -Rasmus

« previous php.dev (#27051) next »