Fix to show PHP errors in 5.4