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

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               39171
 Updated by:       [email protected]
 Reported By:      spam02 at pornel dot net
-Status:           Assigned
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: *
 PHP Version:      5CVS, 6CVS (2008-08-11)
-Assigned To:      andrey
+Assigned To:      mysql
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi

We did quite a few changes to PDO_mysql in 5.3.


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

[2008-08-12 16:24:39] [email protected]

Assigned to the maintainer.

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

[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.