Backwards compat for PHP 5.3


Signed-off-by: Ben Corlett <bencorlett@me.com>