#39171 [Opn->Asn]: pdo_mysql configure script sets empty default socket

From: Date: Mon, 16 Oct 2006 20:42:03 +0000
Subject: #39171 [Opn->Asn]: pdo_mysql configure script sets empty default socket
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103603@lists.php.net to get a copy of this message
 ID:               39171
 Updated by:       tony2001@php.net
 Reported By:      spam02 at pornel dot net
-Status:           Open
+Status:           Assigned
-Bug Type:         *Compile Issues
+Bug Type:         PDO related
 Operating System: OS X
 PHP Version:      6CVS-2006-10-16 (snap)
-Assigned To:      
+Assigned To:      wez


Previous Comments:
------------------------------------------------------------------------

[2006-10-16 20:37:42] spam02 at pornel dot net

Sorry, I've given wrong bug # in my report. The orignal issue was that
PDO fails with:

"Can't connect to local MySQL server through socket '' (2)"

------------------------------------------------------------------------

[2006-10-16 20:31:26] spam02 at pornel dot net

Description:
------------
I've ran onto problem described in bug #34988

I aknowledge that there is workaround by setting appropriate socket in
DSN, however the root cause is that PHP defaults to socket='', which
certainly won't work. 

If proper socket can't be found, it would be wiser to fall back to
built-in default or fail configure script and require user to supply
socket via something like --with-pdo-mysql-socket.

Requirement to use unix_socket in DSN ties code with machine-dependent
configuration and AFAIK it's not possible to find that PDO has empty
string for default socket without connection attempt - that makes it
imperfect workaround.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39171&edit=1


Thread (6 messages)

« previous php.bugs (#103603) next »