Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85357 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10126 invoked from network); 21 Mar 2015 08:14:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2015 08:14:54 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.44 mail-la0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:34879] helo=mail-la0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/40-08251-A782D055 for ; Sat, 21 Mar 2015 03:14:51 -0500 Received: by labon10 with SMTP id on10so1871187lab.2 for ; Sat, 21 Mar 2015 01:14:47 -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:content-type:content-transfer-encoding; bh=P+nKhVBPhFJzSB65fvLpe0ksvCOdhawPI1FPYMQTAcw=; b=JZNZ0IKDU0Mjy7/X6YRocGsfZJSsTQCJYTvJEYZKBvC22TeygQCxBzPHjgr0u1GOSe 7XGoDE8kfTSmqk2pncOhpNlhjrLVF6Rfs9cCM94jIIrHixrztt+BTneoRNhsIcG69KyU 3Sy5rJ5sohVssjMT6NDVOZV2xlMSEtd6aPK3u0qtzfjQcUJcaeNXfPz63DMmJsbTXuLR vzSa5k7ffKdEhOrLi3BiAFrO/cWnvOZrBZz0DOEeQxvl3WDx5X/AZdSXxJ5eyxAYz2+3 wJRrcoqCaq56w4vYGLO4DYNTL/SBPk+5Nw+Y65bOwkRrtnsxasHFTUzYF204HrOE+62V of3Q== X-Gm-Message-State: ALoCoQmwv8hQy1ua9IQ6JinFB3nAXTjMiUAwoIwPQ2V5NVqsW+oGUfz2L4dlgHlgDgob3UwcSeA1WeJ+gVf18xS0Hufj1l/2T0GmQkTxlf6FmqrpREPR5rkv4IxNmTc/7G8k8IkbvQLV4vIhn/n0A0hmzPfFgEVOwQ== X-Received: by 10.112.223.7 with SMTP id qq7mr76187709lbc.81.1426925687090; Sat, 21 Mar 2015 01:14:47 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPSA id r4sm1388402lbo.39.2015.03.21.01.14.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Mar 2015 01:14:46 -0700 (PDT) Received: by lagg8 with SMTP id g8so102471271lag.1 for ; Sat, 21 Mar 2015 01:14:45 -0700 (PDT) X-Received: by 10.152.43.229 with SMTP id z5mr68392781lal.48.1426925685015; Sat, 21 Mar 2015 01:14:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.82.99 with HTTP; Sat, 21 Mar 2015 01:14:24 -0700 (PDT) In-Reply-To: References: <60525DAED8264509BF14D25637CD7C1E@gmail.com> <4DBD500BD91A4CCCBFDDFD5DD80FEC74@gmail.com> <20150320115351.GE10567@phcomp.co.uk> Date: Sat, 21 Mar 2015 16:14:24 +0800 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: =?UTF-8?B?UmU6IFtQSFAtREVWXSDlm57lpI3vvJogW1JGQ11bRElTQ1VTU0lPTl0gQWRkIHByZWdfcg==?= =?UTF-8?B?ZXBsYWNlX2NhbGxiYWNrX2FycmF5IGZ1bmN0aW9u?= From: laruence@php.net (Xinchen Hui) Hey: On Fri, Mar 20, 2015 at 9:14 PM, Xinchen Hui wrote: > Hey: > > On Fri, Mar 20, 2015 at 7:53 PM, Alain Williams wrote= : >> On Fri, Mar 20, 2015 at 10:46:58PM +1100, Pierre Joye wrote: >>> On Fri, Mar 20, 2015 at 7:03 PM, Wei Dai wrote: >>> > Hi internals, >>> >> 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()` t= hat >>> >> is the better way to Implement when there are multiple patterns need= to >>> >> replace. >>> >> >>> >> I would love to hear your feedback! :) >>> >> Any objections? >>> > >>> > I=E2=80=99ve sent this mail for four days, I don=E2=80=99t know if th= is RFC needs a vote. >>> > If you guys have no objections on this, please review the code and me= rge it, >>> > thanks. >>> >>> Nice job, i like the idea. >>> >>> I am not sure about a RFC or not. It somehow looks like a sane >>> replacement for something we killed (with good reasons). >>> >>> Let see what the other think :) >> >> I used s/something/code/ge in a perl script that I wrote a few days ago.= Very >> useful. It would have been a lot more work to do it another way. >> >> So: +1 to the ability to do this, regardless of what mechanism is eventu= ally chosen. > > I also +1 for this. > > if there is no objections raises, I am going to merge it tomorrow.. merged thanks > > thanks >> >> -- >> Alain Williams >> Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, = IT Lecturer. >> +44 (0) 787 668 0256 http://www.phcomp.co.uk/ >> Parliament Hill Computers Ltd. Registration Information: http://www.phco= mp.co.uk/contact.php >> #include >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > Xinchen Hui > @Laruence > http://www.laruence.com/ --=20 Xinchen Hui @Laruence http://www.laruence.com/