Repository navigation
Conversation
When the mysql extension is disabled, there is no automatic detection of the mysql unix socket path. The mysqli/mysqlnd/pdo_mysql use a hardcoded /tmp/mysql.sock path. This adds automatic detection of the mysql unix socket path in mysqlnd with mysql_config --socket, and makes pdo_mysql use it as well.
|
We have option --with-mysql-sock but it seems to be ignored with this patch. Also I'm not sure how is it going to work with --with-mysqli=mysqlnd |
|
The --with-mysql-sock option will have no effect if the mysql extension is disabled (see the matching config.m4) |
|
My point is it'd be great if it did have effect, since we already have option for specifying mysql file and some people probably use it. |
|
I think it is less error-prone for distributions to use mysql_config --socket for that. If you prefer the --with-mysql-sock approach, we should move it to some common mysql config.m4 file. |
|
@blino moving it to mysqlnd may be an option |
|
mysqlnd should be fully independent from libmysql and mysql_config.With this option it might be misleading. I could rather accept an |
|
Andrey just made me aware of the fact that |
|
One place for the generic search function from |
|
Comment on behalf of krakjoe at php.net: Since the landscape of PHP is now different (mysql having been removed), and since this PR has merge conflicts, and since the author seems to have abandoned the work, I'm closing this PR. In addition the socket path is and always has been configurable. If anyone feels that this still needs to be merged, please open a clean PR, with tests, and ensure those tests pass. |
—with-mysql-sock is ignored now that the legacy mysql has been removed, see php/php-src#361
When the mysql extension is disabled, there is no automatic detection
of the mysql unix socket path.
The mysqli/mysqlnd/pdo_mysql use a hardcoded /tmp/mysql.sock path.
This adds automatic detection of the mysql unix socket path in mysqlnd
with mysql_config --socket, and makes pdo_mysql use it as well.