php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14493 MySQL socket detection
Submitted: 2001-12-13 15:53 UTC Modified: 2001-12-13 16:37 UTC
From: philip at p6m7g8 dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.0.6 OS: Unix (FreeBSD)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: philip at p6m7g8 dot com
New email:
PHP Version: OS:

 

 [2001-12-13 15:53 UTC] philip at p6m7g8 dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 16:37 UTC] mfischer@php.net
Has been fixed long time ago and is already in 4.1.0.

Bogusifying.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Dec 03 08:01:23 2020 UTC