#48082 [Com]: mysql_connect does not work with named pipes

From: Date: Mon, 29 Jun 2009 08:42:29 +0000
Subject: #48082 [Com]: mysql_connect does not work with named pipes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-138918@lists.php.net to get a copy of this message
 ID:               48082
 Comment by:       uwendel at mysql dot com
 Reported By:      andrew dot answer at gmail dot com
 Status:           Assigned
 Bug Type:         MySQL related
 Operating System: win32 only - Windows XP
 PHP Version:      5.3.0RC1
 Assigned To:      mysql
 New Comment:

Aren't named pipes considerable slower than TCP/IP: why use named pipes
?! I won't work on named pipe support for mysqlnd, if its slower, which
is the case AFAIK.


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

[2009-06-20 11:36:19] pajoye@php.net

Andrei, fixable? or need help on this one? I'm not sure it is very
critical or widely used. it could wait for 5.3.1.

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

[2009-04-27 16:27:34] andrew dot answer at gmail dot com

I think it's because you use new mysql library (mysqlnd) in background

of mysql-related functions, and break the default behavior.

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

[2009-04-27 16:24:35] andrew dot answer at gmail dot com

php is php-5.3.0RC1-Win32-VC6-x86.msi, thread-safe version.

I think what behavior of mysql_connect should be same as in previous
php 
version(s). I check different host values for php 5.2.5:
null - FAILED
'' - FAILED
'localhost' - FAILED
'.' - OK
Please refer to php and mysql documentation and mysqli_ functions.

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

[2009-04-27 00:04:04] mattwil@php.net

No it's not Jani. :-)

Confirmed. Looks like it's with the VC9 binaries -- is that what you
are using (not VC6)? Another difference related to getaddrinfo...

'' (empty string) and 'localhost' work. BTW localhost is actually using
TCP/IP, contrary to what the manual says. Also (even in 5.2), the empty
string is also changing to localhost -- I'm not sure when the behavior
changed (or if it's MySQL server-related), but that used to use a named
pipe without needing to specify '.' :-/

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

[2009-04-26 21:07:14] jani@php.net

What if you pass proper parameters? "." as host is quite invalid..

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48082

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



Thread (24 messages)

« previous php.bugs (#138918) next »