[php-src] PR #20100: Mark interned strings as IS_STR_VALID_UTF8 on-the-fly

From: Date: Tue, 07 Oct 2025 20:40:10 +0000
Subject: [php-src] PR #20100: Mark interned strings as IS_STR_VALID_UTF8 on-the-fly
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33528@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20100 Author: iluuu1994 Alternative to GH-10870. Use atomic writes for adding the IS_STR_VALID_UTF8 flag to UTF-8-verified interned strings in ext-mbstring. x86 and other architectures guarantee atomic writes/reads for aligned variables up to size_t, which we already rely on, particularly for zend_op.handler being swapped out in the JIT. The atomic write is only needed here to not drop any other newly written bits (which there currently aren't any of). We use GCC and sync atomics because they don't require annotating the modified variable with the C11 _Atomic keyword.

« previous php.git-pulls (#33528) next »