Fix compatability with php5.3.3

Bug: 53523
Change-Id: I183f96e9601aa0ffeac3419bb5c890329a30989a
Merge "Fix compatability with php5.3.3"