https://www.php.net/ChangeLog-8.php#8.0.7 (cherry picked from commit 6b7b002544a8c0f907a37eeb4fd77eecd8c7eb67)