Releng/2.0/php52 sync

Fasten your seatbelts and get ready to warp from revision 1 to 13 of our php52 port...

Hope I catched everything, looking forward to results of some builders.
I hope the commits are enough split up to review...