PHP can't find the MySQL socket on a case sensitive file system
| 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: | None | ||
[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
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-12-31 06:24 UTC] derick@php.net