Here\'s the code that is throwing the error.
try { $myPDO = new PDO(\'pgsql:host=127.0.0.1:5432;dbname=test\', \'test\', \'\'); } catch (\\Thr