After upgrading php from 5.1 to 5.2.10, I got the following warnings when php -v:
# php -v
PHP Warning: PHP Startup: fileinfo: Unable t
Looks like you haven't upgraded PHP modules, they are not compatible.
Check extension_dir directive in your php.ini. It should point to folder with 5.2 modules.
Create and open a phpinfo file and search for extension_dir to find the path.
Since you did upgrade, there is a chance that you are using old php.ini that is pointing to 5.1 modules