PHP 5.4 compat and dependencies