PHP 5.4 compatibility.

Change-Id: Ide5cb5f1c01a9a8cd2b2b9f0e8ad31d2899f5b27