After the online examples and documentation for PDOs, I have this one line for creating a PDO object using persistent connections:
$p = new PDO('dblib:host=SOMEHOSTNAME;dbname=SOMEDB',$user,$password,[PDO::ATTR_PERSISTENT=>true]);
An example of official documentation here: http://php.net/manual/en/pdo.connections.php
The error we get is:
SQLSTATE [IM001]: driver does not support this function: driver does not support configuration attributes
source share