Workaround for PHP Bug #61141

Workaround for PHP Bug: https://bugs.php.net/bug.php?id=61141
Merge pull request #6 from irazasyed/master

Workaround for PHP Bug #61141