Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84963 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35623 invoked from network); 16 Mar 2015 01:40:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 01:40:14 -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.177 as permitted sender) X-PHP-List-Original-Sender: zxcvdavid@gmail.com X-Host-Fingerprint: 209.85.192.177 mail-pd0-f177.google.com Received: from [209.85.192.177] ([209.85.192.177:33782] helo=mail-pd0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/6B-06614-D7436055 for ; Sun, 15 Mar 2015 20:40:13 -0500 Received: by pdnc3 with SMTP id c3so42963114pdn.0 for ; Sun, 15 Mar 2015 18:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type; bh=DeJrU7dqVapgwfas03O45wTjOvpYaZYbRsB24stPalo=; b=qYso5g882+7iWgHAm9DeuqWMFhmV1A2+F8BpvAVhmLygqECtZfg6FaN7xyblKjKqpL RbsG87IUxrzyYzN3oIkF3J7h/fJP2L6Cf/R/La4NVCWWeKtMeI4FbszFlAkrTqHMu4za TuiVn72tIKuuT+R8Ji4KVqqZ13PVVOKYsxYQ8/3gph2XQJsvTdplUsd2fpBbZDDw3i08 SOXOQ4For8hPhlVReNZTP4tPuTpKlXp00O4N9ypH56qX74YtRk74QuNFxCG8qPJXh84M BkJYu4WAWSV9V1HO1xf7leNHbeP6uCleUfSD7ULOcCoV4C7+CYm9NYpInYaLTVH1oPid lbpw== X-Received: by 10.70.35.2 with SMTP id d2mr98257886pdj.51.1426470010136; Sun, 15 Mar 2015 18:40:10 -0700 (PDT) Received: from [10.0.55.38] ([207.226.142.175]) by mx.google.com with ESMTPSA id dr5sm14213529pdb.48.2015.03.15.18.40.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 15 Mar 2015 18:40:09 -0700 (PDT) Date: Mon, 16 Mar 2015 09:40:04 +0800 To: PHP Internals Message-ID: <60525DAED8264509BF14D25637CD7C1E@gmail.com> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="55063474_4d32ab86_36a5" Subject: [RFC][DISCUSSION] Add preg_replace_callback_array function From: zxcvdavid@gmail.com (Wei Dai) --55063474_4d32ab86_36a5 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi internals, 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 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. I would love to hear your feedback=21 :) Any objections=3F =E2=80=94 =20 Best, =20 Wei Dai --55063474_4d32ab86_36a5--