Fix for https://bugs.php.net/bug.php?id=62649