mitigate issues caused by https://bugs.php.net/bug.php?id=47357
Merge pull request #57 from sternk/master

mitigate issues caused by https://bugs.php.net/bug.php?id=47357