php.net |  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
Votes:2
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: martijn at mindconnect dot nl
New email:
PHP Version: OS:

 

 [2008-11-29 16:09 UTC] 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-08 12:29 UTC] jani@php.net
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] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [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-2022 The PHP Group
All rights reserved.
Last updated: Mon Sep 26 22:05:54 2022 UTC