php52-backports
wget http://museum.php.net/php5/php-5.2.17.tar.bz2
tar jxf php-5.2.17.tar.bz2
cd php-5.2.17
# full trunk patch
wget http://php52-backports.googlecode.com/files/php52-backports-20130717.patch
patch -p1 < php52-backports-20130717.patch
# security branch patch
wget http://php52-backports.googlecode.com/files/php52-backports-security-20130717.patch
patch -p1 < php52-backports-security-20130717.patch