You could try to get the PHP 5.2.4 src.rpm and replace PHP 5.2.4 with PHP 5.2.5, then adjust the SPEC file and build a new RPM.
Chapter 5 on
http://www.howtoforge.com/virtual-us...-mysql-fedora8 has an example for building a Postfix rpm from a src.rpm.