fix reference bug of php