Make compatible with https://github.com/Enelar/pgsql_php
Merge pull request #1 from Enelar/unstable

Make compatible with https://github.com/Enelar/pgsql_php