#50231 [NEW]: Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled

From: Date: Thu, 19 Nov 2009 14:55:14 +0000
Subject: #50231 [NEW]: Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144815@lists.php.net to get a copy of this message
From:             foutrelis at gmail dot com
Operating system: Arch Linux
PHP version:      5.3.0
PHP Bug Type:     MySQL related
Bug description:  Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled

Description:
------------
Looking at ext/mysql/config.m4, it seems to me that the path specified
during the ./configure step using the --with-mysql-sock option gets ignored
and PHP_MYSQL_UNIX_SOCK_ADDR isn't defined accordingly. This causes mysqlnd
to always use its default socket path (/tmp/mysql.sock).

I wrote a patch [1] to move the related code in its own if clause so that
it gets executed regardless of whether mysqlnd or libmysqlclient is used.
However, I was unable to test it because I'm not sure how to regenerate the
configure script (I tried with autoreconf but the produced configure script
freaked out; something about confdefs.h missing).

Let me know if you need any more information from me.

----
[1] http://bugs.archlinux.org/task/17179?getfile=4423


-- 
Edit bug report at http://bugs.php.net/?id=50231&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=50231&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=50231&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=50231&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=50231&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50231&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=50231&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=50231&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=50231&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=50231&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=50231&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=50231&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=50231&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=50231&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=50231&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50231&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50231&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=50231&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=50231&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=50231&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=50231&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=50231&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#144815) next »