As in title, when creating multiple PDO objects with the same DSN parameters (username, hostname, password etc.) - would all instances have the same link to the database under the hood? Of course they would all be different instances of PDO, but on the lower level, is the link to the database associated with all of them the same?
That's how it works when calling mysql_connect() multiple times with the same parameters would return the same link would do if called with the same parameters.
http://uk1.php.net/mysql_connect
If a second call is made to mysql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned.
As requested updating with an example...
$con_1 = new PDO($db_type . ':host=' . $db_host . ';dbname=' . $db_name, $db_user, $db_pass);
$con_2 = new PDO($db_type . ':host=' . $db_host . ';dbname=' . $db_name, $db_user, $db_pass);
Does $con_1 and $con_2 have the same link to the actual database?
UPDATE Removed the benchmark as $db was getting overwritten.