Restore the removed testing environments (php 5.4/3 and postgres)

Signed-off-by: emanuele <emanuele45@gmail.com>