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