also, I don't think that referenced objects can have null as values (look the reason variable). You can set a variable to null and then assign this variable as reference, but not what you are doing here. You don't receive a warning PHP Strict Standards: Only variables should be passed by reference if you call this method passing no variable to the reason argument?