Bug fix for PHP 5.5
Merge pull request #1047 from sjinks/rvo

Return Value Optimization - PHP 5.5