My PHP is the one in my FreeBSD ports (I didn't even patch it explicitly), and despite the many "easy" guides to updating a FreeBSD system, I haven't been able to figure out how to actually do that safely.
Upgrade your ports with cvsup, then upgrade the specific packages you installed. Looks like php 5.2.3 is currently in /usr/ports/lang/php5/Makefile . Check the freebsd handbook for "cvsup"; you might also want to look at the package "portupgrade" (should be in your ports directory as well).
List info: http://lists.roundcube.net/dev/