php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26751 PHP can't find the MySQL socket on a case sensitive file system
Submitted: 2003-12-31 06:13 UTC Modified: 2003-12-31 06:24 UTC
From: fabrice at meninsilicium dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.3.4 OS: MacOS 10.3.2
Private report: No CVE-ID:
 [2003-12-31 06:13 UTC] fabrice at meninsilicium dot com
Description:
------------
PHP search for the MySQL socket at /Private/tmp/
mysql.sock. With HFS+ (case insensitive), that works. 
But with a case insensitive file system not.

To reproduce :

1) build PHP on a case insensitive file system (HFS+).
2) install an execute on a case sensitive file system 
(HFS+ case sensitive)

Correction :


  for i in  \
    /var/run/mysqld/mysqld.sock \
    /var/tmp/mysql.sock \
    /var/run/mysql/mysql.sock \
    /var/lib/mysql/mysql.sock \
    /var/mysql/mysql.sock \
    /usr/local/mysql/var/mysql.sock \
    /Private/tmp/mysql.sock \
    /tmp/mysql.sock \
  ; do
    if test -r $i; then
      MYSQL_SOCK=$i
      break 2
    fi
  done


file configure, line 52819 :
    /Private/tmp/mysql.sock \
changed to :
    /private/tmp/mysql.sock \
     ^


  for i in  \
    /var/run/mysqld/mysqld.sock \
    /var/tmp/mysql.sock \
    /var/run/mysql/mysql.sock \
    /var/lib/mysql/mysql.sock \
    /var/mysql/mysql.sock \
    /usr/local/mysql/var/mysql.sock \
    /private/tmp/mysql.sock \
    /tmp/mysql.sock \
  ; do
    if test -r $i; then
      MYSQL_SOCK=$i
      break 2
    fi
  done


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-31 06:24 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 18:01:53 2014 UTC