Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130199 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 040131A00BC for ; Fri, 27 Feb 2026 18:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772215789; bh=YaXqnbvtex6OEAsBvjD4EgPB+xzslsCzDpvHjAyVo/M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VcyKVUF/viPZ+9XSsMv/uAfVUfCRhn7BZoQ+yEBoMQehLSUYdfTsGG6Xm3lRdPdbF 1RkKbfo91kexWvoXyd4c/Hj0DEMtAKjij61sie06b1qi+NLDAohzVPk/HWjqkYRI4h 3PwCK85wTHj8vm/q1diCZNcXXeyeHuvmbNALag+oo7OJiplXCZaBmZ009CbATtnv9c Yh/XM+8jHQw3ADgsvOmv0bmh1vFLjdM6qMuzqwh1CCrOsCkKZ3fTl3CAJvkHQG3AD9 J7/c7ZwC6YGar1TFz25CSYDNP8lbr29RZcV7kEy/kolCE/PLIUz74nSjrcXIINp/6w C8C1KH0QlywIQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8808D180040 for ; Fri, 27 Feb 2026 18:09: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=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, HTML_MESSAGE,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-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (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 18:09:45 +0000 (UTC) Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-5ff093cf15eso651831137.0 for ; Fri, 27 Feb 2026 10:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772215779; cv=none; d=google.com; s=arc-20240605; b=DHxC/4xeYhwWjzjBzwNbJZHXq2eZIGxwzmo4SN/Qx6tYn5obLQcNwNlqwriIbjKYDj xuo0IwV+kuqlBl4igJbTJardCES5ZoDACgUTD90g4nLKWTI7s5p9w5SeQW2FKdTCAkqF 3cOdeR1+BwppqUo79znTwy3ztfDJPRJv8OrPAbQB5153Og+x7+lL/ohaclJUxlMjSNdn +mlHoqKJHxFlbotPD2nEF3o8taBJduchLLDJ3nrad7HxmQ71WaGKsu3WBcab19gIa132 +EtsOQTRO9aZuC7bLVbByqUdSYNgYe5dd3Oapg+fVvZRi9qxxXQtNi6MIKa5hrDsuQH8 TzHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=YaXqnbvtex6OEAsBvjD4EgPB+xzslsCzDpvHjAyVo/M=; fh=tZaAR+rn5+ccUeA8Ip/o7hxDiWTDpCpb5fFE5/4Kerc=; b=O0IiMFpYKAzaUjDJO1LB8X6Rgk5OYnY/Nyr9ZWT/P5vCgfNh39TLkUDkjY5v7nand+ 0xJi/xqavBT25X7BLu+qevF9Q+eyzy4iOLH10uR1bMBABpprwJNzC2DiNsuUDAmxfWA4 22KkZE1T5Ark2Hao/fMrhDMGqMPfjiNim8gTlRBhg2L5dPOsj23P/ebbINzVHOdpOrv8 PUeLqcEYFIB8i1L5l3UlLpNAa6x43eg4vT60MzSZddQ1Yi2GV55yrWk5qrjeSKNzpG1h jYMe/m3txT0wq6djctKNmPLG3qk60ruRk52JMaMwr0omy3qvkQ+pptRhp0YsDDaVEItd JnTg==; 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=devilix.net; s=google; t=1772215779; x=1772820579; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YaXqnbvtex6OEAsBvjD4EgPB+xzslsCzDpvHjAyVo/M=; b=K0qcweEMpCeIJTnJDSolqkV+MEiDXsQbNRxD4HvEhfHPDgNWDQIYMeII3nK6DKliDT UkgQ0Zd91LNdaAX3hAGMOZMkjX9JWdzWSY8kHp4r69xp6ZbhiKZ/9qtqAJhO8HKT9Pwv UhRuHPHnU37C/Er3fJVnAM5hRujLAcP/jUWdQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772215779; x=1772820579; h=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=YaXqnbvtex6OEAsBvjD4EgPB+xzslsCzDpvHjAyVo/M=; b=AuYjg/WBoOvWQZB0xBhEN7dPVxGeOEUKjrDkh5BiIdtZ+oBlirmtjuUW233utXorNg 0I2yLI8Tnx6uJqm2j2WxlmTO4sBovesyu2jkfmtBnh84bZ6QPicGsFg/YwQ0LSGFRn20 FsDcbY4XbCBycV5s4j9fOHRymm2575jTCtwAiEeWQnHShE6GZEttUS3nkIQTKWA5hslu EqZ4RQHZLxuQJfyObLgPtTuVFfrGfnlKG/O6oqJqzQRc1TeAnupys4WTcqJaUt0FFnET q/lvURvpRdrrtvWNfoDa+4bV7+xPpnX+CUrjNhTAdKjgpTrllxuK2A/HgqsNlqCjXcOW ZyyA== X-Gm-Message-State: AOJu0YzR7DGWkUdvVEt51ktUdrlUsAYaqmXXgXDhPximuGn4YRv3kzlI 6AVWQYxraJw91gPuPdI0odIG9DevGf9TmXtPcUJ8n2qtMOWhR8TXUhdQXthNNkTk0K6skz8iOGt Uy+5mJSqJYMJRaT+5XNz7B8mHYr3bJ91nORxejKho X-Gm-Gg: ATEYQzyQshcWxw2bgfy6KlZlGEvg3lR1Ccv42UrLV5rGVd4s4opWgDpmfLmODxvd6qY chnhAlUviVAm2ty4ainNEUv831s1zY05SVWxhfiR2mo2ui0UoWNUUAX2pOaMxGycrSrlR/4FeCI GYruGy8wAZNmihfK541oX5lBLSG4szmj+7uEF3WHNhAkevnstmE5VPtt7nVHPTobXbKQerCQeaD ybbykMgVCJY4WGy8NYJ2Wvugekmzurdbn4IRDa2eXm7JTL46IJXcSjvVcpm9vLAyburt/l3+Wu0 qnTQOvAUYTpp/L5CV/xj5tXuMdiC2/X6yFpiTiUalq18hu8nrMrjPYiF1O1P6VZ8hISJtxgmZ9+ wQPc= X-Received: by 2002:a05:6102:d8f:b0:5fc:9758:eae4 with SMTP id ada2fe7eead31-5ff324be395mr1598615137.20.1772215779209; Fri, 27 Feb 2026 10:09:39 -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 20:09:28 +0200 X-Gm-Features: AaiRm52Vdsr6ex_Kq-KRx8r_zs4eYfhoP64r-80btPXWqeeyiUBmtBfT2lJP_h4 Message-ID: Subject: Re: [PHP-DEV] [RFC] [VOTE] Prefix and Suffix Functions To: Ilija Tovilo Cc: php internals Content-Type: multipart/alternative; boundary="000000000000fc416f064bd22358" From: narf@devilix.net (Andrey Andreev) --000000000000fc416f064bd22358 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 27, 2026 at 6:50=E2=80=AFPM 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 > $subject-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. Indeed, alternating parameter order based on the type of operation would be just frustrating. Consistency with existing functions is nice in principle, but not all historic precedents are good. --000000000000fc416f064bd22358 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Feb 27, 2026 at 6:50=E2=80=AFPM Ilija= Tovilo <tovilo.ilija@gmail.co= m> wrote:
On Fri, Feb 27, 2026 at 5:42=E2=80=AFPM Bob Weinand <bobwei9@hotmail.com> 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 $s= ubject-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 consis= tent.
>
> 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<= br> 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.

Indeed, alternating p= arameter order based on the type of operation would be just frustrating.
Consistency with existing functions is nice in principle, but not a= ll historic precedents are good.
--000000000000fc416f064bd22358--