From: Operating system: Windows PHP version: 5.3.2 Package: *Database Functions Bug Type: Bug Bug description:PDO class doesn't connect but reuse open connections
Description: ------------ The manual says that the PDO class represents a database connection. Thus I assume that when I instantiate two PDO classes, I get two database connections. But instead, when using the same connection data, I do not get a second connection but the first connection is simply reused. I need a separate connection for logging purposes, it cannot use the primary connection that's affected by transactions and all such things. I do get a separate connection when I connect to "127.0.0.1" instead of "localhost", which is a different string but the same meaning. This is a hack though because there are very limited alternatives to define the same host. Expected result: ---------------- I expect every PDO instance to actually give me a new connection, at least when another connection is already in use. Actual result: -------------- It gives me the old connection that is used for transactions and such. My programme doesn't work then. It needs another connection. -- Edit bug report at http://bugs.php.net/bug.php?id=51989&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51989&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51989&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=51989&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=51989&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51989&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51989&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51989&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51989&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51989&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51989&r=support Expected behavior: http://bugs.php.net/fix.php?id=51989&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51989&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51989&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51989&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51989&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51989&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51989&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51989&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51989&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51989&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51989&r=mysqlcfg