make compatible with PHP 5.2

Thanks for Contributor 157.88.129.84

Change-Id: I36642fec13c3e5751c7959c3eb003b5277eac07d