#46719 [NEW]: configure option for default MySQL socket not working
| From: | martijn at mindconnect dot nl | Date: | Sat, 29 Nov 2008 16:09:40 +0000 |
| Subject: | #46719 [NEW]: configure option for default MySQL socket not working | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131490@lists.php.net to get a copy of this message | ||
From: martijn at mindconnect dot nl
Operating system: Gentoo Linux
PHP version: 5.2.6
PHP Bug Type: MySQL related
Bug description: configure option for default MySQL socket not working
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 bug report at http://bugs.php.net/?id=46719&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46719&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46719&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46719&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46719&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46719&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46719&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46719&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46719&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46719&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46719&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46719&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46719&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46719&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46719&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46719&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46719&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46719&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46719&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46719&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46719&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46719&r=mysqlcfg