Change functions context scope to void errors in PHP 5.3.x.