Merge pull request #142 from mayurjadhav/RG-193

RG-193 Worked on PHP5.4 issue