PHP shouldn't be including *either* postgres.h or postgres_fe.h.Remove that include from it, or get a more recent version of PHP.
regards, tom lane