Bugfix for #64604

https://bugs.php.net/bug.php?id=64604