|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-05-31 10:04 UTC] 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) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 19:00:01 2025 UTC |
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