Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106178 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56437 invoked from network); 8 Jul 2019 17:54:12 -0000 Received: from unknown (HELO NAM04-BN3-obe.outbound.protection.outlook.com) (40.92.9.36) by pb1.pair.com with SMTP; 8 Jul 2019 17:54:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nYgfBGlrryLM+xkIhOgGY6LIhs1T7HJCXMuyKYQi4Dc=; b=G4nC2glhZWqWu7stfSWws91HRohqBNtlBFSpwfuGM0R2OsjDUQIX//ADTXNAnBWA7JbLuHGJfBjf1pvaQY2QvhgHT2TSVL2Az6BYIi4IFVSqSqXPnN9C4lz+IhMohuDEVrWULS2uDYl1EDemXzbcpXdLACxHJIalAWPwzu7Qiuj8sPuBI/lXdnTfHa/S6q1BiPjhc+nvILACc6lj9e43zmsGB/C1Gp2Dkk9wSzok+UxiwsbTm1B4AUR3iNUJwBfsk5eGkQx2ok+VjCzMUshANHU6R8Ei63Q0DqbsuROpzHtQKRKMiV4TWW/aJTTYUYjQk8hUJLow1ZBWXzu1PeC0ew== Received: from BN3NAM04FT036.eop-NAM04.prod.protection.outlook.com (10.152.92.52) by BN3NAM04HT103.eop-NAM04.prod.protection.outlook.com (10.152.93.50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2052.18; Mon, 8 Jul 2019 15:13:37 +0000 Received: from DM5PR06MB2857.namprd06.prod.outlook.com (10.152.92.58) by BN3NAM04FT036.mail.protection.outlook.com (10.152.93.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2052.18 via Frontend Transport; Mon, 8 Jul 2019 15:13:37 +0000 Received: from DM5PR06MB2857.namprd06.prod.outlook.com ([fe80::48cd:8998:c8ff:1f79]) by DM5PR06MB2857.namprd06.prod.outlook.com ([fe80::48cd:8998:c8ff:1f79%9]) with mapi id 15.20.2052.020; Mon, 8 Jul 2019 15:13:37 +0000 To: Sara Golemon CC: "will@wkhudgins.info" , PHP internals Thread-Topic: [PHP-DEV] [VOTE] Voting opens for str_starts_with and ends_with functions Thread-Index: AQHVMtc2W38yFGmQ7UeluZx90vX1fKa/mvqigAEtOoCAAA2dNw== Date: Mon, 8 Jul 2019 15:13:37 +0000 Message-ID: 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> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:27A6AC489BEC077815E8A11304161B3D9F37607A24C97A67535ADBA2035EC4F1;UpperCasedChecksum:B89050E423E778C14C2B3F9B770CCEAE99861B598EEA14CF55433A8E4B53E3CE;SizeAsReceived:7849;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [NBEx0w9iQ1ACT+lcu6NA+dlhsFyyuZb4] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:BN3NAM04HT103; x-ms-traffictypediagnostic: BN3NAM04HT103: x-microsoft-antispam-message-info: 1HXDxIlg4czlrSNz1CSbsF8miKV7A5NRD/HWAyPNX1pppkAqCz/qyyhn0BHsksp83BOn4RItjlfKQH5V+E6/I4NdlVMdAkg5sXSiKWo7D1EwCsV2Bf0mCy5iiRzmEed9unYpuujz69MDNMxyR4wmACuMm+kOd6iQgbxYbUqGAqwh23qjI3SOsq3l4rpbMjLu Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 5c23f72e-adb1-4e96-c165-08d703b6da0d X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2019 15:13:37.2959 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT103 Subject: Re: [PHP-DEV] [VOTE] Voting opens for str_starts_with and ends_with functions From: theodorejb@outlook.com (Theodore Brown) On Mon, July 8, 2019 at 9:10 AM Sara Golemon wrote:=0A= =0A= > On Sun, Jul 7, 2019 at 3:45 PM Theodore Brown wr= ote:=0A= > =0A= > > For those voting against adding these functions, can you clarify why?= =0A= > =0A= > Explaining my non-vote. I'm explicitly abstaining as I don't see the=0A= > value in these functions (I'd rather see a community driven library=0A= > which does the same thing in a more agile way), but neither do I see=0A= > much intrinsic harm in allowing these functions in.=0A= =0A= Thanks Sara. I understand your perspective of not wanting to add more=0A= functions to PHP core which can be easily implemented in userland.=0A= =0A= However, when it comes to basic string functions which are needed in=0A= almost every script, I don't think it makes sense to ask users to=0A= depend on an extra library for this. Almost every other language=0A= has built-in functions for simply checking if a string starts or ends=0A= with another string.=0A= =0A= Best regards,=0A= Theodore=