Adding backwards compatibility for PHP versions < 5.4
Merge pull request #1 from geoffreak/master

Adding backwards compatibility for PHP versions < 5.4
Thanks geoffreak!