Here you have the reason:
Notice: Only variable references should be returned by reference...
Make a search with that notice from front page and you get for example
http://moodle.org/mod/forum/discuss.php?d=27453
http://moodle.org/mod/forum/discuss.php?d=40983