Update for PHP 5.4

Fixing error caused because call-time pass-by-reference has been
removed.