Fixed problem with temporary variables in PHP 5.5