#26751 [Opn->Csd]: PHP can't find the MySQL socket on a case sensitive file system
| From: | derick@php.net | Date: | Wed, 31 Dec 2003 11:24:16 +0000 |
| Subject: | #26751 [Opn->Csd]: PHP can't find the MySQL socket on a case sensitive file system | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52632@lists.php.net to get a copy of this message | ||
ID: 26751
Updated by: derick@php.net
Reported By: fabrice at meninsilicium dot com
-Status: Open
+Status: Closed
Bug Type: PHP options/info functions
Operating System: MacOS 10.3.2
PHP Version: 4.3.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-12-31 06:13:49] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26751&edit=1