ID: 28590
Updated by: [EMAIL PROTECTED]
Reported By: u60149431 at bedug dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Fedora Core 2
PHP Version: 4.3.6
New Comment:
You're doing something wrong. This works fine for me too on dozen
different servers and configurations from Linux to MacOSX.
Previous Comments:
------------------------------------------------------------------------
[2004-06-25 10:14:07] u60149431 at bedug dot com
Further analysis has revealed that the problem originates with PHP
taking the socket defined in /usr/local/include/mysql/mysql_version.h
for granted, even though MySQL is built with an alternate socket. The
issue that PHP:s configure script completely ignores the
--with-mysql-sock remains.
To re-create the error:
Build MySQL from sources using:
� ./configure \
--enable-assembler \
--with-unix-socket=/var/run/mysql/mysql.sock \
--without-debug \
--with-openssl \
--with-openssl-includes=/usr/local/ssl/include \
--with-openssl-libs=/usr/local/ssl/lib
And build PHP with:
� ./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-zlib \
--enable-calendar \
--with-mysql=/usr/local \
--with-mysql-sock=/var/run/mysql/mysqld.sock \
--with-ncurses \
--with-gettext \
--with-xml \
--with-imap=/root/download/imap-2004 \
--with-imap-ssl=/usr/local/ssl \
--with-java=$JAVA_HOME
------------------------------------------------------------------------
[2004-06-11 15:39:39] [EMAIL PROTECTED]
It works fine here and it worked fine before.
------------------------------------------------------------------------
[2004-06-10 17:28:07] u60149431 at bedug dot com
I linked it against a MySQL built from sources.
I was able to make a workaround for this bug by editing the MySQL
header file where a default was defined.
What meaning does --with-mysql-sock have if it doesn't have any
effect???
------------------------------------------------------------------------
[2004-06-01 22:39:28] [EMAIL PROTECTED]
Are you compiling the MySQL extension against external or
bundled libmysql?
Check your phpinfo() output, what does MYSQL_SOCKET show
for it's value?
------------------------------------------------------------------------
[2004-05-31 10:04:33] u60149431 at bedug dot com
Description:
------------
The option --with-mysql-sock to the configure script is completely
ignored, and causes PHP to still access /tmp/mysql.sock, which is the
hard-coded value from header files.
Any alternate values from /etc/my.cnf are also ignored.
Use of php.ini is not feasible in my specific application.
Expected result:
----------------
That --with-mysql-sock indicates the default value for the mysql
socket. (which may be altered by a config file)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28590&edit=1