Ref #21 - PHP 5.4 compatibility
Fixes #25. Ref #21