fix for PHP 5.5
Merge pull request #15 from remicollet/issue-php55

fix for PHP 5.5