#46719 [Fbk->Opn]: configure option for default MySQL socket not working
| From: | martijn at mindconnect dot nl | Date: | Tue, 09 Dec 2008 19:12:19 +0000 |
| Subject: | #46719 [Fbk->Opn]: configure option for default MySQL socket not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131832@lists.php.net to get a copy of this message | ||
ID: 46719
User updated by: martijn at mindconnect dot nl
Reported By: martijn at mindconnect dot nl
-Status: Feedback
+Status: Open
Bug Type: MySQL related
Operating System: Gentoo Linux
PHP Version: 5.2.6
New Comment:
No, there are no files, directories or special files like sockets like
that in /tmp.
Previous Comments:
------------------------------------------------------------------------
[2008-12-08 12:29:57] jani@php.net
Is there by any chance some file called that in /tmp ?
------------------------------------------------------------------------
[2008-11-29 16:09:40] martijn at mindconnect dot nl
Description:
------------
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:
http://woei.mindcontrolled.nl/temp/php5.2.6-options.txt
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"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46719&edit=1