Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89960 invoked from network); 20 Mar 2015 13:27:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 13:27:34 -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.217.177 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:32995] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/60-21731-3402C055 for ; Fri, 20 Mar 2015 08:27:32 -0500 Received: by lbbrr9 with SMTP id rr9so10751653lbb.0 for ; Fri, 20 Mar 2015 06:27:28 -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=Jjn37AwFXsf1QJULf7Yvas+7OdmJ7OZDa41sR93A6/U=; b=ho/gkPq+0hvPHnErlD8WcJErYawgNRgRKwm4i4j50XmRzPZfJcxYyo/DJqq8Vaj06q q17oZmDJV0+zLFOfOrt+6XaW+fbzdI1wTBL/LQUzw6oOsKm232I2eI6k+1N7FDGa6Ati bnwO9ddHS1coz/aR28TaYAGQtPG8nqAOSyKtqDaCOjy5X4+GO0g6L761fIh5vLC0cWsv EMS4pDPEBRnP2FORnNBJV9x+rVqbyVm1fZbZ/qL4OnQxU4eF2Vhy2wYe0MHTzl74Do/8 Ax393xD7FdhH0s4VsiBiQYoXaHOyhZW3aXU9gQIbyZHrAGR9C8SwWFoKpuTjcIAU/9Zy rOkw== X-Gm-Message-State: ALoCoQkykQbtgbCaFWuQME9dyhnm2tyyYpB033bdCO47c8+UZQjRJviZCDZIGMIKlAGm2ZKtMJvxcMgQ/40XE17xSVo9CuWXaSweXMPkSxcEjZzzW15Y+c4QOmim1od7hheAp0Hw/Fv7WaR/zqOH6p9jykFsaOl25Q== X-Received: by 10.152.178.164 with SMTP id cz4mr72186697lac.39.1426857572167; Fri, 20 Mar 2015 06:19:32 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPSA id ci4sm932729lad.16.2015.03.20.06.19.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2015 06:19:31 -0700 (PDT) Received: by lbbsy1 with SMTP id sy1so75125937lbb.1 for ; Fri, 20 Mar 2015 06:19:30 -0700 (PDT) X-Received: by 10.112.8.101 with SMTP id q5mr67574771lba.19.1426857569977; Fri, 20 Mar 2015 06:19:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.82.99 with HTTP; Fri, 20 Mar 2015 06:14:26 -0700 (PDT) In-Reply-To: <20150320115351.GE10567@phcomp.co.uk> References: <60525DAED8264509BF14D25637CD7C1E@gmail.com> <4DBD500BD91A4CCCBFDDFD5DD80FEC74@gmail.com> <20150320115351.GE10567@phcomp.co.uk> Date: Fri, 20 Mar 2015 21:14:26 +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 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()` th= at >> >> 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 thi= s RFC needs a vote. >> > If you guys have no objections on this, please review the code and mer= ge 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 eventua= lly chosen. I also +1 for this. if there is no objections raises, I am going to merge it tomorrow.. thanks > > -- > Alain Williams > Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, I= T Lecturer. > +44 (0) 787 668 0256 http://www.phcomp.co.uk/ > Parliament Hill Computers Ltd. Registration Information: http://www.phcom= p.co.uk/contact.php > #include > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php --=20 Xinchen Hui @Laruence http://www.laruence.com/