Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names

The PR is for 5.5. Merging up to 5.6 and master requires more changes.

Please do not merge. I will take care of it once Travis is happy.