Currently Being ModeratedAug 23, 2011 6:12 PM (in response to Transini)
Those port packages are 3rd party tools. They do not affect the system-installed versions of PHP. You would have to either replace Apache's PHP module or replace the system Apache with a "port" version.
Instead of replacing PHP, I suggest following this tutorial to add the PostgreSQL extension to the system PHP.