Hooks: Bugfix PHP 5.4: don't use call-by-ref on 1st argument

!! functions which rely on this feature need to set reference on function definition