[3.9] App loading optimisation + unit tests to PHP 5.4