From:             andrew dot answer at gmail dot com
Operating system: Windows XP
PHP version:      5.3.0RC1
PHP Bug Type:     MySQL related
Bug description:  mysql_connect not work with named pipes

Description:
------------
When mysql server setting up on WinXP machine with named pipe, 
mysql_connect called with '.' as host parameter anyway connect via 
tcp:// protocol.






Reproduce code:
---------------
When mysql server setting up on WinXP machine with options
[client]
pipe
socket=mysql

[mysqld]
skip-networking
enable-named-pipe
socket=mysql

php code like this:

$link = mysql_connect('.','user','password');
if (!$link) {
    die('Could not connect: ' . mysql_error());
} else echo 'Connected successfully';

mysql_close($link);

should connect via named pipes. But it's fail.


Expected result:
----------------
Connected successfully

Actual result:
--------------
Could not connect: php_network_getaddresses: getaddrinfo failed: Ýòîò 
õîñò íåèçâåñòåí.

php errorlog:
[27-Apr-2009 01:28:06] PHP Warning:  mysql_connect(): 
php_network_getaddresses: getaddrinfo failed: Ýòîò õîñò íåèçâåñòåí.  
in C:\sites\www\php.php on line 10

[27-Apr-2009 01:28:06] PHP Warning:  mysql_connect(): [2002] 
php_network_getaddresses: getaddrinfo failed: Ýòîò õîñò íåèçâåñò 
(trying to connect via tcp://.:3306) in C:\sites\www\php.php on line 
10

[27-Apr-2009 01:28:06] PHP Warning:  mysql_connect(): 
php_network_getaddresses: getaddrinfo failed: Ýòîò õîñò íåèçâåñòåí.  
in C:\sites\www\php.php on line 10





-- 
Edit bug report at http://bugs.php.net/?id=48082&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48082&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48082&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48082&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48082&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48082&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48082&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48082&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48082&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48082&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48082&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48082&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48082&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48082&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48082&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48082&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48082&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48082&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48082&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48082&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48082&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48082&r=mysqlcfg

Reply via email to