Fixed return context for PHP < 5.5