ID:               46719
 Updated by:       [EMAIL PROTECTED]
 Reported By:      martijn at mindconnect dot nl
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Gentoo Linux
 PHP Version:      5.2.6
 New Comment:

Is there by any chance some file called that in /tmp ?


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to