[php-src] PR #23323: Stop grapheme_strrev from using UBRK_DONE as a byte index

From: Date: Sun, 16 Aug 2026 16:57:34 +0000
Subject: [php-src] PR #23323: Stop grapheme_strrev from using UBRK_DONE as a byte index
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37931@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23323 Author: iliaal grapheme_strrev() called ubrk_previous() inside a loop whose condition still saw the previous position, so UBRK_DONE (-1) was used as a byte offset and overwrote the result NUL. Stop when the iterator is done, and NUL-terminate the zend_string_alloc() buffer.

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