Fix standard not working with PHP 5.3
Merge pull request #6 from thaiphan/master

provided backward-compatibility support