ID: 28590
User updated by: u60149431 at bedug dot com
Reported By: u60149431 at bedug dot com
-Status: Bogus
+Status: Open
Bug Type: *Compile Issues
Operating System: Fedora Core 2
PHP Version: 4.3.6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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-10 01:00:03] 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".
------------------------------------------------------------------------
[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