Example output of an application that is not compatible with PHP 5.4:
Code: Select all
127 | ERROR | The use of function session_register is discouraged in PHP
| | version 5.3 and forbidden in PHP version 5.4 and forbidden in
| | PHP version 5.5; use use $_SESSION instead
yum install phpcs
Example usage:
Code: Select all
for i in `ls -1 /var/www/vhosts/`; do echo "DOMAIN "$i;phpcs -p --standard=PHPCompatibility /var/www/vhosts/$i/httpdocs --report-full=/root/possible.5.4.issues/$i;done
General notes:
This utility is written in PHP, so memory limits and disabled functions could mess it up. Otherwise its very very cool, I highly recommend it.