Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85266 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37304 invoked from network); 20 Mar 2015 08:09:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 08:09:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=zxcvdavid@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zxcvdavid@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: zxcvdavid@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pd0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:34087] helo=mail-pd0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/99-25408-3A5DB055 for ; Fri, 20 Mar 2015 03:09:07 -0500 Received: by pdbni2 with SMTP id ni2so101943029pdb.1 for ; Fri, 20 Mar 2015 01:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=9J4RNdigvkLk/6CJ/hfGfLM3g+1T685Dcbw35JUYR7Q=; b=yq7PsQUYaXKafIXrYj6vuvT/1FHf4WbRiOyySu8WasZ0tXfgXWrBo1u2rfi4zZbzJA TnScSvKUJ7nBt3dLEHnWb1i9wJD1zYpkr9CZNbsNCQgBOJ1wgkTtadlPRKQAiYS3dC9i beDe2awSBGiSycOUl2HRSD2ws8FPzBs2nBzWm15GkJ6T4se51t2jPnPP4Fu191+FqMu3 gUg1M0RikHV7Ff9glpDznQIF2Lnx7v4Cn2cZgMgysGskodbO7VqTGhn30d384RgOYR1l EUtU1Is26ANTmfEHJ2Y8iwm9XzS/FHcY8dgz8HGwY/CTDJN2lLXw3ct6w5OFLkmGNmjA FZrQ== X-Received: by 10.66.231.204 with SMTP id ti12mr102895491pac.135.1426838944558; Fri, 20 Mar 2015 01:09:04 -0700 (PDT) Received: from [10.0.70.17] ([207.226.142.175]) by mx.google.com with ESMTPSA id kn5sm6700523pdb.42.2015.03.20.01.09.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Mar 2015 01:09:03 -0700 (PDT) Date: Fri, 20 Mar 2015 16:03:47 +0800 To: PHP Internals Message-ID: <4DBD500BD91A4CCCBFDDFD5DD80FEC74@gmail.com> In-Reply-To: <60525DAED8264509BF14D25637CD7C1E@gmail.com> References: <60525DAED8264509BF14D25637CD7C1E@gmail.com> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: =?utf-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_?=[RFC][DISCUSSION] Add preg_replace_callback_array function From: zxcvdavid@gmail.com (Wei Dai) Hi internals, > Hi internals, > =20 > The R=46C to add a user-land function for an easy-to-use and reliable =20 > preg=5Freplace=5Fcallback=5Farray() in PHP is up for discussion: =20 > https://wiki.php.net/rfc/preg=5Freplace=5Fcallback=5Farray > =20 > This proposes adding one function: =60preg=5Freplace=5Fcallback=5Farray= ()=60 that > is the better way to Implement when there are multiple patterns need to= =20 > replace. > =20 > I would love to hear your feedback=21 :) > Any objections=3F I=E2=80=99ve sent this mail for four days, I don=E2=80=99t know if this R= =46C needs a vote. If you guys have no objections on this, please review the code and merge = it, thanks. > =20 > =20 > =E2=80=94 =20 > Best, =20 > Wei Dai =E2=80=94 Wei Dai