php v5 variable passed by reference issue resolved

Fixed php version 5 issue regarding variables passsed by reference