Upgrading to PHP 5.2.2 on RHEL and CentOS
It's been quite a while since the last release of PHP 5.2. The article I posted on upgrading to PHP 5.2.1 was published back on 2/10/2007, just short of 3 months ago. That all said, PHP 5.2.2 has finally been released and it includes many of the patches that were submitted under the recent "Month of PHP Bugs" (formerly known as "March").
The spec file goes largely unchanged from my release of 5.2.1, although the source has been updated to 5.2.2 and one RH-supplied patch (#50) has been updated to reflect some of the code changes in this newest release.
With more than 120 bugs fixed and additional improvements to memory management, needless to say, this is considered to be a fairly important release and I strongly suggest that any user of my yum repository take a few minutes and run a "yum update". If you're not using my repo, you should be, because it'll really make keeping your system up-to-date a lot easier (check out the "Yum Repository" link at the top of the page). If you're really adamant about not using my repo (perhaps you just want to upgrade PHP and not MySQL, httpd, etc.) or simply want to compile from source (why are you using an RPM-based distro then?), you may be interested in the src.rpm package at the bottom of the page.
Update (9/24/2009): Packages deleted, use the yum repository instead.