Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98374 invoked from network); 26 Jul 2016 20:10:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2016 20:10:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.proweb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.proweb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: david.proweb@gmail.com X-Host-Fingerprint: 209.85.220.172 mail-qk0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:33068] helo=mail-qk0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/B0-24716-1B3C7975 for ; Tue, 26 Jul 2016 16:10:25 -0400 Received: by mail-qk0-f172.google.com with SMTP id p74so16510786qka.0 for ; Tue, 26 Jul 2016 13:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MPUxY+b65AzUHOXYdrwNQCtJyGEggMaFqoyEspsFsJY=; b=oNkiznDbP9ArKhZUo9RbFVhG+BjhvMaBDrUjwwhinqvZaVEl4p657BhM2sw+zKMRTK JfIiUwPG/WWBxlsGNMwptTtSoVuwg/DJgH0hfsL5D8Lp0JOow7EDRCWRN9us/jwvihEq 7Z6N3C08BgbQYy6OZlzeA8AKBbhYcElVfquE5BLRAiDBLRLiVa7J2gD2mInKc7XMeZu0 DKoKoIxcBIGHAPa4LqjoUhr8JdYOvbh6jgNBGTwyA5qegCRXw232UvX2BND7+sHU6U4H +VsEo3OSDflL73oSA5SGTH3y4VX7SrC/PyKpGLliQXX5k6WYmSs3vkK3/wxx7eLD3Qat msHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MPUxY+b65AzUHOXYdrwNQCtJyGEggMaFqoyEspsFsJY=; b=VXWeNKVu1NEl2u/mSyY5kG1UWB4zO1sv4sBhD4MP0Fa0ZMeUdmE6vtap6SXu3qqD8a 1pFd5cnKkI0tJ0TbXH699lIUOYXPpanTTgCc17yxYHNSUJYw/73NdhvAv1HmHLhxTX/h FjHg0Ckd5jBAqVnnQhewNtocdB8+Actz+jWA4H2nEcmpewxc7OLKQU1aJKQ5ZCjj5+Jf mr50h8NveRSHXlhAv4gdI9gc+Q1fwfWA9wsS9hbLYf9R+76ALKppv284sdRzVPY0M6za Lz7gVgv5T8LygLXFKu+c+ljd+FxG04vb/R8Ercy4XRBpjcG21iXR7uo32uEbI2WwmlLk yEhw== X-Gm-Message-State: AEkoouvfryZbyTw5iyvXaJJ+3Zr4U1LUW/6qSiiR6UkEAdlnxcnkbi8z3U1ZnlVmXSfkSTAWnXWZMvGMOjWozg== X-Received: by 10.55.214.135 with SMTP id p7mr31971007qkl.195.1469563810540; Tue, 26 Jul 2016 13:10:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.45.67 with HTTP; Tue, 26 Jul 2016 13:09:51 -0700 (PDT) In-Reply-To: <2a035597d443afb282e374aead55319d@wkhudgins.info> References: <2a035597d443afb282e374aead55319d@wkhudgins.info> Date: Tue, 26 Jul 2016 17:09:51 -0300 Message-ID: To: will@wkhudgins.info Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC Karma Request From: david.proweb@gmail.com (David Rodrigues) Questions: 1. Have you talked with this list about the terms of you suggestions? (like str_begins, str_starts, strstarts, strbegins, str_ends, strends...) Is yes, sorry, I do not received this topic before. 2. There some valid performance advantage over strpos()? 3. And about the "market" for this new function? I mean, about users really need a new function like it on core. 4. And about the case sensitiblity? Should have some function like stribegins() or will be an argument? In general, I like this implementation, but I like to know about you in this questions. I don't know the policy about implements new functions on "str namespace". Thanks! 2016-07-26 15:41 GMT-03:00 : > Hello, > > I would like to submit an RFC for adding a str_begins and str_ends function, > in relation to https://bugs.php.net/bug.php?id=67035 and > https://bugs.php.net/bug.php?id=50434. I've added those functions on my > local PHP copy. I would like to make an RFC and a PR for adding it to the > core PHP copy. > > Thanks, > > Will > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- David Rodrigues