Bug #68750 [NEW]: PDOMysql with mysqlnd does not allow the usage of named pipes
From: steffen at howarts dot info
Operating system: Windows 8.1 6.3.9600
PHP version: 5.6.4
Package: PDO MySQL
Bug Type: Bug
Bug description:PDOMysql with mysqlnd does not allow the usage of named pipes
Description:
------------
Mysql Server configured so that you can't use the default socket:
[mysqld]
skip-networking
socket=abcdef
Connecting like isn't possible:
//this is the way it works with libmysql (with patch):
new PDO("mysql:host=.;unix_socket=abcdef")
//this is the way how it works with mysqlnd (with patch):
//This seems to be very slow (5000ms without networking, while
//libmysql results in 20ms - which is probably a different bug)
new PDO("mysql:host=.;unix_socket=\\\\.\\pipe\\abcdef")
TLDR: The bug is that PDO mysql only checks
for the unix-specific case of 127.0.0.1
while mysqlnd expects an explicit . for windows named pipes.
--
Edit bug report at https://bugs.php.net/bug.php?id=68750&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68750&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68750&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68750&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68750&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68750&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68750&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68750&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68750&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68750&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68750&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68750&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68750&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68750&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68750&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68750&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68750&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68750&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68750&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68750&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68750&r=mysqlcfg
Thread (5 messages)
- steffen at howarts dot info