Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106191 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26799 invoked from network); 9 Jul 2019 10:21:10 -0000 Received: from unknown (HELO mail-ot1-f54.google.com) (209.85.210.54) by pb1.pair.com with SMTP; 9 Jul 2019 10:21:10 -0000 Received: by mail-ot1-f54.google.com with SMTP id r21so3511688otq.6 for ; Tue, 09 Jul 2019 00:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V0AyoPpb5P6V0FfYK/tQbELAanTQAyqaHbSd/tu8mrs=; b=uggTHtoVq22p6zglK4/QtGgEetS3tTUnVYDfCZH//5U1678TMBi8r5phCKz5utq9bB bMXKsq36yN0qUjUD1va3bPNdRq4VRrWxCskJ2tEseELN4YMhbOiqjEQOrecMR4wniKJ5 Mv++Zb3OYKN4TgJZcqiUOW/7iZPNhg+rWs2fEQt4ZTSxLdymssEBIvMeyag5cIFDIBgX 4Bh+zTO4opbGqPKvKsJzKutjJ+S7h9RVXnU3RHr5YwewrIbEhd75UPIxqB4xJY/G+Bh/ mT/Hyqjmb+uQK+hMaJUkUYoAaPWzUpvl+3jtUpSrwixcekDcVMt0G4jZgmHdLi11XUBX p30Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V0AyoPpb5P6V0FfYK/tQbELAanTQAyqaHbSd/tu8mrs=; b=LkuaoNFrAhALfLNeN5ZEPdIe968WswhK+0hJDa/7Q7mqOWvU5g/0+d/2jXToWr8Mvd XhG1qyjBHoSFwJPGGDP0DcseudE4FJKMBwe7kDWYynalNRxOmB8b7nJa/PL+cWT7Hfrt ftI928dh/s1033SogwmaZKwib2MkUj6vMiVY/9JMX8QuHUcGl++p1rDHUa0GsuceHtxF GP3AUBBvxpSy9PXYyAECiVzpTsPhQFvMvXg0Bt9qyKRBliYCLUrExEhQodOPgtcwqeEV Hg+963n7lAVDDkH2UpwNpXgKyyRjgjMVH6w7XIicc4hbdlbJLa5Z1rM6NMQIJgQChllk Gw4A== X-Gm-Message-State: APjAAAVs+9yPX5mjiwa9guxuHsYAYLlIrXcVYrhGtYxOHdCF0vfJB2LC EKhlNAh+4UY2XLMKvaNWoSfRnWWe X-Google-Smtp-Source: APXvYqx1Xc5h/Np3DStDy6ltD7FDAwr4c3XbibQagM1G0vX+zm/JIz6TTEF5ofMIsqaNYMJ4Edjm7Q== X-Received: by 2002:a9d:4902:: with SMTP id e2mr17766218otf.184.1562658045388; Tue, 09 Jul 2019 00:40:45 -0700 (PDT) Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com. [209.85.167.177]) by smtp.gmail.com with ESMTPSA id i17sm3419269oik.32.2019.07.09.00.40.44 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 00:40:44 -0700 (PDT) Received: by mail-oi1-f177.google.com with SMTP id m206so14638402oib.12 for ; Tue, 09 Jul 2019 00:40:44 -0700 (PDT) X-Received: by 2002:aca:4c14:: with SMTP id z20mr11685466oia.121.1562658044478; Tue, 09 Jul 2019 00:40:44 -0700 (PDT) MIME-Version: 1.0 References: <8442f1fa5544b2ca03e7cebbc64e8e5c@wkhudgins.info> <683c5da474e13283030cac3d0c0ec080@wkhudgins.info> <2c37999d1e5372ae6ab48bfce5420796@wkhudgins.info> <2CF672F8-12F5-4D37-8B8C-591A6E695220@benramsey.com> <78034520cdb610d923e25d47ed718938@wkhudgins.info> <000a01d52e91$2a4b6f20$7ee24d60$@jhdxr.com> <93528f103c149b7c48e8f35914049d06@wkhudgins.info> <97884add-88fd-e09e-92c6-2c1b68c579f5@xs4all.nl> <22ac19ecaf897370facfe9fd0a8b1993@wkhudgins.info> <0f8ab2d1-c308-7168-0aba-a5bcf327c3ad@telia.com> <4d340e64db8d81f47cd7e4f7d3a4c268@wkhudgins.info> <660880c5-6273-1f6d-2181-3cb4c67fb508@telia.com> In-Reply-To: <660880c5-6273-1f6d-2181-3cb4c67fb508@telia.com> Date: Tue, 9 Jul 2019 08:40:08 +0100 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= Cc: Theodore Brown , Will Hudgins , PHP internals Content-Type: multipart/alternative; boundary="000000000000a59e7c058d3aada8" Subject: Re: [PHP-DEV] [VOTE] Voting opens for str_starts_with and ends_with functions From: phpmailinglists@gmail.com (Peter Bowyer) --000000000000a59e7c058d3aada8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 8 Jul 2019 at 19:09, Bj=C3=B6rn Larsson wrote: > Having this _ci postfix is a new way of indicating case insensitivity. > I think that it might add to negative votes. Personally I think it's a > good idea to mimic existing ways, even if they are a bit awkward. > > How about using a flag or following "tradition", like stri_starts_with > & stri_ends_with or str_istarts_with & str_iends_with? That would > follow strstr / stristr and str_replace / str_ireplace. > I would vote yes with that naming. It's a damn silly tradition, but it's what PHP uses for other functions, and keeping consistency is better than improving individual functions. Peter --000000000000a59e7c058d3aada8--