When I try to install php 5.3 stable from source on Ubuntu (downloading compressed installation file from http://www.php.net/downloads.php) and I run ./configure I
./configure
For the latest versions it is needed to install libxml++2.6-dev like that:
apt-get install libxml++2.6-dev