From: fabrice at meninsilicium dot com
Operating system: MacOS 10.3.2
PHP version: 4.3.4
PHP Bug Type: PHP options/info functions
Bug description: PHP can't find the MySQL socket on a case sensitive file system
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 bug report at http://bugs.php.net/?id=26751&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26751&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26751&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26751&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26751&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26751&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26751&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26751&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26751&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26751&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26751&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26751&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26751&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26751&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26751&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26751&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26751&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26751&r=float