php 5.2.8 is old unstable version with few security holes. Look changelog for details on http://www.php.net/ChangeLog-5.php
You need to update it to php 5.2.10 or php 5.3.0
Apache 2.0 and Apache 2.2 are separate branches of Apache http server. Last stable versions are Apache 2.0.63 and Apache 2.2.13
If version of your apache 2.0 is under 2.0.63 you need to update it.
You do not need to update your apache to 2.2.x if you do not need new functionality.
Look here for details http://httpd.apache.org/