Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85299 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48459 invoked from network); 20 Mar 2015 15:49:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2015 15:49:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.167 cause and error) X-PHP-List-Original-Sender: dev@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:60676] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/CA-21731-3714C055 for ; Fri, 20 Mar 2015 10:49:08 -0500 Received: from dslb-178-008-196-184.178.008.pools.vodafone-ip.de ([178.8.196.184] helo=[192.168.178.30]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YYzAX-0000FL-1h; Fri, 20 Mar 2015 16:49:05 +0100 Message-ID: <550C4170.6090207@mabe.berlin> Date: Fri, 20 Mar 2015 16:49:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <60525DAED8264509BF14D25637CD7C1E@gmail.com> <4DBD500BD91A4CCCBFDDFD5DD80FEC74@gmail.com> In-Reply-To: <4DBD500BD91A4CCCBFDDFD5DD80FEC74@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1426866548;16ecdf97; Subject: Re: [PHP-DEV] =?UTF-8?B?5Zue5aSN77yaIFtSRkNdW0RJU0NVU1NJT05dIEFk?= =?UTF-8?B?ZCBwcmVnX3JlcGxhY2VfY2FsbGJhY2tfYXJyYXkgZnVuY3Rpb24=?= From: dev@mabe.berlin (Marc Bennewitz) Am 20.03.2015 um 09:03 schrieb Wei Dai: > 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()` that >> is the better way to Implement when there are multiple patterns need to >> replace. >> >> I would love to hear your feedback! :) >> Any objections? Why not simply allow the callback to be an array, too? > — > Wei Dai > >