Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130198 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 8DB541A00BC for ; Fri, 27 Feb 2026 16:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772211356; bh=9NIE2XUvEUKX8r3OrtOT5AervosPbpsPWbGgYAdvR8o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=l4e3XUMOTYpHorx7L7vPrX/eovULYnMlxocHXnlW0yNZfBLnV8rNebDlbHKogVq/k AG4SXg9iOAOjMQNYZcMTtqySZgxfIWJ0B3AB5hDFccdsqQeAlsx9aoTnd7l41tZq+3 jgZ+ZPdItVo7Zc0mwOfPe4GQaWuqTOuLefhoZdUXcg1fV76xu087dvWnjifEvchSIY cn5WerAEV/vfZnS6w7GIM15G1H5Z/4oKVrp1reJ457Nmi8aNG99djXUKF1e4XI5IU+ 2lydEAGdlvUvGS3KjllnRXXxgWN+qZh9SixNn95AAS71BI2B3OUFTor+1BV+IsSMrT CgEWTdS3DXnRw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 99FAE180341 for ; Fri, 27 Feb 2026 16:55:55 +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.9 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 ; Fri, 27 Feb 2026 16:55:55 +0000 (UTC) Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-389f200c26eso25626821fa.0 for ; Fri, 27 Feb 2026 08:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772211349; cv=none; d=google.com; s=arc-20240605; b=FXk4sACIG22aeeeg3e87pV3avd/SJAG/e25o7lF3tDzVYFnOe13evBkUW4X9i7BttD 5bjdr3u5ssFcFkvyVpMvoyX+5FPQMvH5tB9WyYjLMUbnALK4Jf089+S/kfbZtlLRKcLw 0giDNbyoZkGNSX7sv6KozuFHuaKmLu2j6swnekKnkww8IjJEXK3mjOaipW8ZdHYs83rf fGDPOgh8F5TIsrimCyn8oUny/UavSDHQ6qorQc6xoX4S6KVu4xwhSGzYA2/tFwMqvjuV Bk9Z3aC+yyyBFaRb61RIoX6dPE3SlXqis7UyOi9snpOhuUKW+Istc6+NFTTVqEir4yCQ vsFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9NIE2XUvEUKX8r3OrtOT5AervosPbpsPWbGgYAdvR8o=; fh=tZaAR+rn5+ccUeA8Ip/o7hxDiWTDpCpb5fFE5/4Kerc=; b=ixuLFaqAhI35JBwxGRyTg08dEi0QaSMfIPHLL26JhJcvTf5Zj9uj9qPR4BSmefumxv Z+TSDnfBzfHsYL2v1oXXxLAIlr7PbJBnGX02Z4oL43NK4OlqoDMqeYpp/Axf5BEmJ47f PH3qupoP6FUUB1T5gCdnB4VV6gUaHxntCOMCTAP9ZgmLK3nIpycbF3qyEgG8IhjT0q5k XRv5OCXL3UeGQ5mOjOP+gPd9jjPKBhlCJRr0YOG/+PPP886/xtsY0eZmxjnDfpijXUH0 Qsdo5sSP30gwQUAMMBU6XdQrFlrFGuZJVINq/q+DO2RCiObRyBcjwAOFvXcXI8d5D4Jz IYvQ==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772211349; x=1772816149; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9NIE2XUvEUKX8r3OrtOT5AervosPbpsPWbGgYAdvR8o=; b=Y70g0Wbot/HU4D/rKGzwwticip3WvksVB7Rw/l2FLUDV24QgeGmvauWmS/Zg2pLmv5 GOCL52nIiSoPfJklAtSDyfYUSzWRU3jJQWEo7eUV5dZ4nbT4je4DSkJpI482b3+09Nk8 +KfgASBbvssT/eBX4gV45vdT041wxxVJzy4ntckXYMAv8zUxlybuMsVmEwLlq8vr9S7s 8HQtrxvmdZefeFE0TzuwuGldF+iCqe1XkDjKvJWvrSp87eiaAW720076Y5pbeXF2epOP q2VSvdRImmHcl7o6SVbrENA33spq3hDBtvPKSLpPPxHMrBcQRDtrhuRw/vFtiRERf+Ix PTnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772211349; x=1772816149; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9NIE2XUvEUKX8r3OrtOT5AervosPbpsPWbGgYAdvR8o=; b=CRgbWGYDSolDGpTGmCSbHefJ5Sqhc1LytMYuitj3YFQob2422yIoM2uHBw4Pfha3YJ dPGW4kl8sRDQszk91r85osP+3pjiYt9lDOeq9ifqjv/Ksm8lpmRoQcBbnbYQpborWsxb zZe4jqY+O8KGYCNLGVerQUf+mriEEluWaXCyboUd45Q+MYnG4fjAaOvgf7OgV6F46CPT x+W9er30+ZEZ1VhKD0aCy620Q7+sivnnjQKbOOEovuNo26mmGjP9l5obEpL0I9PkTvY8 /kWlPTIdGZuHoFXZ1mzkQOdPp/kb5a6LG+T1fKy+eyjME5glchvr1gMaTZ5WXjz025pW uqnQ== X-Gm-Message-State: AOJu0YzySRrvZLhK1IgT438UFKFoOdxVpvuhhktCJCqxmXaKA+vPXyhV xSouHsjiVnT+BlTv16qy+uSfA8QLISuCpAEXSc/MzDmtHLQUu3CdtMO2RGKy/6UC4k37EJBtENb mfGKhLc8V2Gp1950M1vG7E90MDDo1uUeDXA== X-Gm-Gg: ATEYQzwoLxJVcmZPBp/7ncpEioW3ZE3MwJqbWl2PJCMkkBBvwtFBY69pKjB8NBEBBO1 Erw1kYlgwQufBEoN98JJrxClOKjCu8WS95Md8WnRB3OKM2CBhJE6tdaKulG6HnpVOa9fs2HFJXB 8gm2UpE8/T2+iUpNTUYDclHuFO8Dw3n1U2dGTbphIs3+TaCM0mcN7HStW318YVFxyoAHSZaHVtt y5zOQkcB/vnrR71WudDjinag/JKfjy+VoY4Wor76Har+Ep/t34IwKmWHMN7uCjqVM4qh+qL4ZIz 9uR9C/4= X-Received: by 2002:a05:651c:1510:b0:387:189d:18cd with SMTP id 38308e7fff4ca-389ff11cb73mr24669481fa.16.1772211348628; Fri, 27 Feb 2026 08:55:48 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <09e17a8d-5d40-4b69-bd3f-3e73a7b998b6@app.fastmail.com> In-Reply-To: Date: Fri, 27 Feb 2026 16:55:37 +0000 X-Gm-Features: AaiRm5221q6I3hWjGQsy5aZuV2OCo0EddDGRde5LAXSBnN3cC-K6SNR-v-pH7r0 Message-ID: Subject: Re: [PHP-DEV] [RFC] [VOTE] Prefix and Suffix Functions To: Ilija Tovilo Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tekiela246@gmail.com (Kamil Tekiela) On Fri, 27 Feb 2026 at 16:48, Ilija Tovilo wrote: > > On Fri, Feb 27, 2026 at 5:42=E2=80=AFPM Bob Weinand = wrote: > > > > Hey Larry, > > > > On 27.2.2026 17:32:47, Larry Garfield wrote: > > > Though I would also question why so many people are voting for $subje= ct-last for the secondary vote. > > > > The two-argument variants are consistent with e.g. addcslashes (one > > subject operated on with an argument) - so that's perfectly consistent. > > > > Then for replacing, you want consistency with str_replace, and > > preg_replace and such. > > Maybe consistently inconsistent. ;) In my opinion, it's much better to > not keep repeating the same mistake, pick a standard and stick with > it. Subject-first always works. I wouldn't think many people want to > internalize the placement of the subject based on the kind of string > replacement function. > > Ilija I think $subject should be first because these functions align with other str_prefix_* functions. If the names were inverted, i.e. str_ensure_prefix, then I would vote for $subject to be last because str_replace and str_replace_suffix are more aligned.