{"action":"opened","issue":{"url":"https://api.github.com/repos/doctrine/dbal/issues/2249","labels_url":"https://api.github.com/repos/doctrine/dbal/issues/2249/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/dbal/issues/2249/comments","events_url":"https://api.github.com/repos/doctrine/dbal/issues/2249/events","html_url":"https://github.com/doctrine/dbal/issues/2249","id":121577946,"number":2249,"title":"Compatibility mis-match? PGSQL_ATTR_DISABLE_PREPARES in v2.5.2 (in a PHP 5.6.16 envt)","user":{"login":"c5creative","id":5258731,"avatar_url":"https://avatars.githubusercontent.com/u/5258731?v=3","gravatar_id":"","url":"https://api.github.com/users/c5creative","html_url":"https://github.com/c5creative","followers_url":"https://api.github.com/users/c5creative/followers","following_url":"https://api.github.com/users/c5creative/following{/other_user}","gists_url":"https://api.github.com/users/c5creative/gists{/gist_id}","starred_url":"https://api.github.com/users/c5creative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c5creative/subscriptions","organizations_url":"https://api.github.com/users/c5creative/orgs","repos_url":"https://api.github.com/users/c5creative/repos","events_url":"https://api.github.com/users/c5creative/events{/privacy}","received_events_url":"https://api.github.com/users/c5creative/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T21:09:41Z","updated_at":"2015-12-10T21:09:41Z","closed_at":null,"body":"Greetings,\r\n\r\nI'm coming up empty on the following observation. I'm not sure if it's an issue or not, and perhaps someone here could advise.\r\n\r\nI went ahead and installed doctrine/dbal 2.5.2 (via composer) into a project running atop of PHP 5.6.16, and I'm using pgsql as my backend database. I was previously running 2.5.1 on a PHP 5.3.* without issue. \r\n\r\nIn connecting via dbal to the database, I am seeing this now:\r\n` Fatal error: Undefined class constant 'PGSQL_ATTR_DISABLE_PREPARES' in /path-to-files/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php on line 49`\r\n\r\nThat block is shown:\r\n```php\r\nif (PHP_VERSION_ID >= 50600\r\n                && (! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES])\r\n                    || true === $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES]\r\n                )\r\n            ) {\r\n                $pdo->setAttribute(PDO::PGSQL_ATTR_DISABLE_PREPARES, true);\r\n            }\r\n```\r\n\r\nIf I comment out this entire block, the fatal error goes away and things *seem* to work normally. I'm not comfortable just commenting this out, since I don't know the full ramifications of such an action.\r\n\r\nAny advice is much appreciated and I hope I'm not breaking any conventions by reporting this here. Thanks!\r\n\r\nJP"}}