Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129792 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id B93931A00BC for ; Mon, 19 Jan 2026 18:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1768847691; bh=B8JzouXa+KqnMEhyqmcZ53M3bzJftQRDenyI0EpAeRI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ftvgOevTh3VzGAshZikWHMubPEmB+kTRN/L2P18gS1WDJOuqvo1Ik9JJiax32nFXy y2svMx2qTylVYxAgz4mwVgpWWqfQ/aoLhH3TnHOAVykGbfmgaEsa9ynXhMJtUSRJB9 OmbPqdEo8L3be9/czYX7KaStkf29Ol3efHgiBJuc0ufuUluswDuooRajCJSzSg20gh 7LTMCU8EHJgpRsJejtcPFXY4QHMCw4zsR0coPw0w7ArqpBDHTt9eiwT2wKn+aLc14R BMXUrEYBQ4yQak/iN3EjgZLNl3xzYhrHe7hQvRINZDd1+WE9rvzJBxXx5uqTtARliy f6GNDVcwzzREg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A9B5918055E for ; Mon, 19 Jan 2026 18:34:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 19 Jan 2026 18:34:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1768847678; bh=uJY3+EzcGmQuUgxLkQQBzhbO5tFTe8chHtrsuq57xO0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=Rt2MpMPEX5a/UezXTli0dKgtkGWUIkMIaoF8XS5JhCLyCqZpsgn61t/ZUXLH2PhCq KWJey0ImgidsMCG/acdDZHzaAA/TMCXLFsuHMnzgsh5zjQW6V7lHTd3B4POqa7w9bP ywcsQ9gIlF0eBLJcPKesrlFO3fi7mVRxy6b2zghnL9MwAXaE0v0onZpBYJ5JugP3gb 1Of9AI/cjWaNzxAixneLXB2v5AAQORrtTxWWbfSmhlm/zZtSO8by1cNMk3jaJ0NT+s SnPewOo1/hic0obtfS7CF/1zJu9uraIY+RryKJRhdUYV6alaCfUXkIj4J258YJzcAP +KnCjVQalRxTQ== Message-ID: Date: Mon, 19 Jan 2026 19:34:34 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV][UNDER DISCUSSION][RFC] grapheme_strrev function To: youkidearitai , php internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 1/16/26 08:20, youkidearitai wrote: > I creating a new function for strrev for grapheme cluster unit. > grapheme_strrev function. > > My investigate, Sometime found mb_strrev function for userland. > However, I think create a grapheme cluster unit for strrev function. > Because multi code point in human language and emoji. > > I created an RFC and Pull Request. > Feel free to comment. > https://wiki.php.net/rfc/grapheme_strrev > https://github.com/php/php-src/pull/20949 Thank you for your RFC. Aligning the feature set of the grapheme functions with those of mbstring and the bytestring-based functions definitely makes sense to me. I am thus in favor of the RFC. For the RFC document itself: You did not fill in the "RFC Impact" section. I think it can just be "None" for each of them. The only impact is the conflict with a possibly existing function. You already mentioned that in the breaking changes section. Adding new functions doesn't have any relevant impact on tools or IDEs, this is something that regularly happens. For Future Scope it can probably also be "None"? Even if you plan to add more grapheme functions, they are independent of grapheme_strrev. In the References section, please add a link to the mailing list archives of the discussion. This makes it easy for folks to find the discussion in the future. The correct link is: https://news-web.php.net/php.internals/129765 Best regards Tim Düsterhus