ChangeLog: https://www.php.net/ChangeLog-8.php#8.0.10 (cherry picked from commit ab8017a2dd84af08ebfb4b9e43964013b3351f65)