Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129840 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 5306E1A00BC for ; Thu, 22 Jan 2026 08:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769071112; bh=Jdiitg1jFZOMFz9nuoQMm0yiBmXgYsjHI/oaTRSwvOA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QwZ+ZJbWUS3isVmMAlqh2NW9o8qHbL0dPs8UTLqfYQ/r2OHzYkifOIzSo+VXeptFt y6pE/R3eCD15W4roM9rWU7RUNBbhjZ1LqIcS1J9akCk2bDGKcyQ6buwI3vPQYvRAQA zLZtX1PPnwt0/p71B/LSu4G6wBOO9a3Fgow/Q30Dga4crknbcT5gzXIBeeSIUJyEjE sHnGpCAsjNQaLFmoosI37fQbvhfcqgUoi8k6F87dkDH/RBmVj9NJyFJ3Hs6COb0G7w 3jWdjqKY3RHleXHsCev5STGWJcApzTRRRNWvQLdqoQH5+EYEUVU+F2ZeDvMb0SDgey HtRBzcg+ySgYQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 12E1018057D for ; Thu, 22 Jan 2026 08:38:32 +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 ; Thu, 22 Jan 2026 08:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1769071105; bh=5Vs1PtqqK6rCB/4g/gBg9ohnM9O4lkW6KaPsxsh7JTk=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=mRiuV2EAeNNgnWb2H9dy/IY+690xrT+p4j6K9mexuN3KAHTTmvh88p4lI0ZTXJ2qC Ff1eS3aoqH/ZLu06qNJhrGqlB2De3T3E0H1TauZVlf+Nx7LY7iStikkwpwSYslM+JO NhTqz/CSO2SQMAraRhGQOfYkgIX8Cnjwk9SdSrS4NgHLOvF/Ok9RrGToUl3738zr5T e/u+zMi+3aFPKiSHXCx34Ypw8ZRE5SDTEtccmM8LrUQUIDIMScrBkOAlmMyqjYPKU3 FT+wglukzNBCQugn174RgzZp/Evj+htKdtggeuVmvxxB5hqA1Z/nw5RpqcCEonhgel HO4mRzA2bxNIQ== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 22 Jan 2026 09:38:25 +0100 To: Barel Cc: PHP internals Subject: Re: [PHP-DEV] Check RFC draft In-Reply-To: References: Message-ID: <68d0ebaf56276d8305fd04efe8e57324@bastelstu.be> 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 Am 2026-01-22 09:01, schrieb Barel: > I just created this RFC draft > https://wiki.php.net/rfc/prefix_suffix_functions > > Given that this is my first RFC I would like to ask if it would be > possible > for someone to take a quick look to see if the format/overall content > structure is correct or if there is anything that needs to be changed > before I move it to the discussion process You carefully followed the suggested template and provided extensive explanation of possible edge cases and also meaningful example use cases. I don't see anything that needs changes structure-wise or anything important missing. The formatting in “Edge cases and potential gotchas” is a little broken, instead of the bold bullet points it probably makes sense to add further sub-headings. One note to the implementation: I believe the `_ensure` and `_remove()` functions should be “haystack first“ for consistency (i.e. first the target string, then the prefix/suffix). Best regards Tim Düsterhus