PEAR::DB with PHP < 4.2.0
If you want to use recent versions of PEAR::DB to connect to PostgreSQL, you’ll need this [bug report]. It seems that recent versions of DB depend on pg_affected_rows(), which isn’t present in PHP < 4.2.0.
Edit: The patch was accepted.
