Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83580 invoked from network); 16 Mar 2015 06:00:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 06:00:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.41 mail-la0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:34704] helo=mail-la0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/34-06614-E6176055 for ; Mon, 16 Mar 2015 01:00:14 -0500 Received: by lagg8 with SMTP id g8so30913077lag.1 for ; Sun, 15 Mar 2015 23:00:10 -0700 (PDT) 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:content-type:content-transfer-encoding; bh=V/BhELAgD02qPoMlhHyfYNwTL31xFBaREFE1YTuPQLQ=; b=aJPxos2FK15pQzBbflzlVC3G0xEOmQjtb5iSB2SH/ufmj1cjDa6tStt8f5Ozk/Rhnj 8eOTPjKjSO6ZmDay6rmG5u65umL7zk8yd42d5OMovakOE3XLf/26m9vyhoT4IHUqrqcD sMS3MIGlAQaKuO4aukuFbQlcDXLrVRZnT7P7MnpFaGsYvfzKRnRpEoqKNyZCXgbwCl/z Dch0CDyeQoQSSLvbesgAMB/19kFhH9SCpZyej+NtWl2tKoh8ukv5QvIkolcurCQNLuv4 /SjN2fo1SVriI4OTdULozipdHn3OUz0fysmeQrWJOjc1N4T8+7ybr4PUbPYYaPY6snH2 uJAw== X-Gm-Message-State: ALoCoQmOLlAva+jAncu6Twkit+jcOFuTd6sHjJFbCulyF6LPfXwV3FA04oCBEHnARqdmAe1fIKD4WDhUGQVpVRw5uvKJyKUud0pI2Nv5PYOhDwZvBUtIvBjqdeHiQdxs3KpUAub9h9A4Ms+emADJE9tS9cUAsea4eg== X-Received: by 10.112.185.66 with SMTP id fa2mr52538545lbc.117.1426485610819; Sun, 15 Mar 2015 23:00:10 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPSA id bj2sm1970707lbc.43.2015.03.15.23.00.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Mar 2015 23:00:09 -0700 (PDT) Received: by lbbzq9 with SMTP id zq9so24377041lbb.0 for ; Sun, 15 Mar 2015 23:00:08 -0700 (PDT) X-Received: by 10.112.188.227 with SMTP id gd3mr34421981lbc.0.1426485608964; Sun, 15 Mar 2015 23:00:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.82.99 with HTTP; Sun, 15 Mar 2015 22:59:48 -0700 (PDT) In-Reply-To: <60525DAED8264509BF14D25637CD7C1E@gmail.com> References: <60525DAED8264509BF14D25637CD7C1E@gmail.com> Date: Mon, 16 Mar 2015 13:59:48 +0800 Message-ID: To: Wei Dai Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Add preg_replace_callback_array function From: laruence@php.net (Xinchen Hui) Hey: On Mon, Mar 16, 2015 at 9:40 AM, Wei Dai wrote: > Hi internals, > > The RFC to add a user-land function for an easy-to-use and reliable > preg_replace_callback_array() in PHP is up for discussion: > https://wiki.php.net/rfc/preg_replace_callback_array > > This proposes adding one function: `preg_replace_callback_array()` that > is the better way to Implement when there are multiple patterns need to > replace. > > I would love to hear your feedback! :) > Any objections? I have no objections on this, since I proposed similar thing before.. I think this is a good addition after we removed /e if you objections raise in couple days, I will merge this. thanks > > > =E2=80=94 > Best, > Wei Dai > --=20 Xinchen Hui @Laruence http://www.laruence.com/