Bug #14493 Updated: MySQL socket detection
| From: | mfischer@php.net | Date: | Thu, 13 Dec 2001 21:37:26 +0000 |
| Subject: | Bug #14493 Updated: MySQL socket detection | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73621@lists.php.net to get a copy of this message | ||
ID: 14493
Updated by: mfischer
Reported By: philip@p6m7g8.com
Old Status: Open
Status: Bogus
Bug Type: *Configuration Issues
Operating System: Unix (FreeBSD)
PHP Version: 4.0.6
New Comment:
Has been fixed long time ago and is already in 4.1.0.
Bogusifying.
Previous Comments:
------------------------------------------------------------------------
[2001-12-13 15:53:49] philip@p6m7g8.com
----------------------------START---------------------------
#!/bin/sh
$VER_PHP=4.0.6
$PREFIX=/usr/home/src
LD_LIBRARY_PATH=$PREFIX/mm/lib:$PREFIX/openssl/lib
fetch -mva http://download.php.net/distributions/php-$VER_PHP.tar.gz
gtar -xvzof php-$VER_PHP.tar.gz
cd php-$VER_PHP
./configure --with-apxs=$PREFIX/apache/bin/apxs \ --enable-safe-mode --enable-calendar \
--enable-filepro --enable-ftp --enable-trans-sid \ --enable-sockets --enable-inline-optimization \
--with-openssl=$PREFIX/openssl --with-mysql=$PREFIX/mysql \ --with-iodbc=$PREFIX/iodbc
--with-mm=$PREFIX/mm \
------------------------END---------------------------------
configure output:
[snipped]
checking for MySQL support... yes
checking for MySQL UNIX socket... /tmp/mysql.sock
patched configure output:
checking for MySQL support... yes
checking for MySQL UNIX socket... /usr/home/src/mysql/mysql.sock
Patch:
sduwebship# diff -crN configure.old configure
*** configure.old Thu Dec 13 15:43:37 2001
--- configure Thu Dec 13 15:44:53 2001
***************
*** 29538,29554 ****
echo $ac_n "checking for MySQL UNIX socket""... $ac_c" 1>&6
echo "configure:29541: checking for MySQL UNIX socket" >&5
! MYSQL_SOCK=/tmp/mysql.sock
! for i in \
! /var/run/mysqld/mysqld.sock \
! /var/tmp/mysql.sock \
! /var/lib/mysql/mysql.sock \
! /var/mysql/mysql.sock \
! ; do
! if test -r $i; then
! MYSQL_SOCK=$i
! fi
! done
cat >> confdefs.h <<EOF
#define MYSQL_UNIX_ADDR "$MYSQL_SOCK"
EOF
--- 29538,29544 ----
echo $ac_n "checking for MySQL UNIX socket""... $ac_c" 1>&6
echo "configure:29541: checking for MySQL UNIX socket" >&5
! MYSQL_SOCK=
$MYSQL_DIR/bin/mysql_config --socket
cat >> confdefs.h <<EOF
#define MYSQL_UNIX_ADDR "$MYSQL_SOCK"
EOF
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14493&edit=1