Pass by reference PHP error fixes in php 5.4
Merge pull request #178 from stan-rnao/php-errors

PHP 5.4 error fixes