Pass by reference error in php5.5