php-src
php-src copied to clipboard
Update utf8-valid flag on already interned string
Description
Interned strings are never flagged UTF-8 if they are already interned and were not flagged on internation.
Also update UTF-8 flag after checking for already interned strings.
Related to: https://github.com/php/php-src/issues/24380#issuecomment-6277024130