Get the complete source code from php.net and it will come as a .tar.gz I am running on Slackware myself so mine will look something like:
tar -xvf php-blah.tar.gz
./configure
make
make install
restart your apache server and it should update itself. Just read the README and INSTALL file. Lata!
Ziggs