Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41068 invoked from network); 16 Mar 2015 02:10:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 02:10:38 -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.220.43 as permitted sender) X-PHP-List-Original-Sender: zxcvdavid@gmail.com X-Host-Fingerprint: 209.85.220.43 mail-pa0-f43.google.com Received: from [209.85.220.43] ([209.85.220.43:36406] helo=mail-pa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/6C-06614-C9B36055 for ; Sun, 15 Mar 2015 21:10:37 -0500 Received: by padcy3 with SMTP id cy3so49630172pad.3 for ; Sun, 15 Mar 2015 19:10:33 -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 :content-transfer-encoding:content-disposition; bh=nNn7B0hzeaJ817bDLoGDQ7SKQXuoGe+pIIXlhLQI1gQ=; b=fzd2iDwXfbkDLTOqxDkfas+YzvwcEcbnNxf6CQKYhFLr+qNDmWjAebnL9KCzdpb8Y5 4KpAe0bqwKaLTeq9FxZLqt2nn+HwvT2l0kH3NAhj5F+8cibYsV8m9X6EY82GBSQuCsV0 rHsd7UAR7LOx811b+4zhsE+SX18uw76Grsic6Yg6UWWIpwRTipzmgsK8AXpVdNkAgA6M hzkaYao6dC4bpfMrXcIuJ5Yw7/brdokcZe1DrsJIC8BNeQZbifw1f9ilfkeye3hr/qlb pvcNT246X7DqyhvxkzWlLdqSZ1nJ+F0bMFAeEFqPzJoo+ks6Kuap5REusbN8HhNaPD8L zL9w== X-Received: by 10.70.91.75 with SMTP id cc11mr132589031pdb.150.1426471833233; Sun, 15 Mar 2015 19:10:33 -0700 (PDT) Received: from [10.0.55.38] ([207.226.142.175]) by mx.google.com with ESMTPSA id ba12sm14332702pac.23.2015.03.15.19.10.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 15 Mar 2015 19:10:32 -0700 (PDT) Date: Mon, 16 Mar 2015 10:10:28 +0800 To: PHP Internals Message-ID: <4ACA116B79C94FEA8274158BA293142A@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: [RFC][DISCUSSION] Add preg_replace_callback_array function From: zxcvdavid@gmail.com (Wei Dai) 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. Any objections=3F I would love to hear your feedback=21 :) =E2=80=94 =20 Best, =20 Wei Dai