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