php 5.5 pass by reference fix