Fix for PHP 5.3 compatibility.

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>