Must declare function parameter as pass-by-reference

Otherwise you spend an hour tracking down why the hell it doesn't work on PHP 5.4.17. ;)

Change-Id: I3b047cc686f97b054cfed1ab0052a590d890f076