|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46719 configure option for default MySQL socket not working
Submitted: 2008-11-29 16:09 UTC Modified: 2008-12-18 01:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: martijn at mindconnect dot nl Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 5.2.6 OS: Gentoo Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-11-29 16:09 UTC] martijn at mindconnect dot nl
Configure ran with option --with-mysql-sock=/var/run/mysqld/mysqld.sock.
After compiling, phpinfo(); displayed this configure option correctly, but a few pages down it sais: MYSQL_SOCKET: /tmp/mysql.sock

The socket /var/run/mysqld/mysqld.sock exists and works perfectly as I have another PHP-version on the same machine using it without any trouble.

MySQL version is 5.1.30.

Notice: the configure options where generated by a Gentoo ebuild (v5.2.6-pl7-gentoo). Other configure options where taken into account without problems.

Although it's not impossible that the ebuild has a bug that causes this problem, I was unable to find anything that could cause this particular problem in the php-5 ebuild and in gentoo's bugzilla. Earlier ebuilds didn't show this problem.

Since it's unclear where the problem is I decided to start as upstream as possible.

Reproduce code:
A full list of all used configure options is here:

Expected result:
I expected the default socket to be /var/run/mysqld/mysqld.sock instead of /tmp/mysql.sock.

Temporary fix: I used mysql.default_socket in the php.ini.

Actual result:
After compiling, phpinfo(); displays: "MYSQL_SOCKET: /tmp/mysql.sock"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-08 12:29 UTC]
Is there by any chance some file called that in /tmp ?
 [2008-12-09 19:12 UTC] martijn at mindconnect dot nl
No, there are no files, directories or special files like sockets like that in /tmp.
 [2008-12-11 00:05 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-12-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 21:01:28 2024 UTC