Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled
| Bug #50231 | Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2009-11-19 14:55 UTC | Modified: | 2009-11-30 15:13 UTC |
|
||||||||||
| From: | foutrelis at gmail dot com | Assigned: | ||||||||||||
| Status: | Closed | Package: | MySQL related | |||||||||||
| PHP Version: | 5.3.1 | OS: | Arch Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2009-11-19 14:55 UTC] foutrelis at gmail dot com
Description: ------------ Looking at ext/mysql/config.m4, it seems to me that the path specified during the ./configure step using the --with-mysql-sock option gets ignored and PHP_MYSQL_UNIX_SOCK_ADDR isn't defined accordingly. This causes mysqlnd to always use its default socket path (/tmp/mysql.sock). I wrote a patch [1] to move the related code in its own if clause so that it gets executed regardless of whether mysqlnd or libmysqlclient is used. However, I was unable to test it because I'm not sure how to regenerate the configure script (I tried with autoreconf but the produced configure script freaked out; something about confdefs.h missing). Let me know if you need any more information from me. ---- [1] http://bugs.archlinux.org/task/17179?getfile=4423
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-11-19 15:45 UTC] foutrelis at gmail dot com
[2009-11-19 22:15 UTC] foutrelis at gmail dot com
[2009-11-30 15:13 UTC] jani@php.net