Merge pull request #28 from eru/php5.4

compatible php5.4