Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74003 invoked from network); 9 Jan 2015 12:12:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2015 12:12:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.218.48 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.218.48 mail-oi0-f48.google.com Received: from [209.85.218.48] ([209.85.218.48:63493] helo=mail-oi0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/54-39109-995CFA45 for ; Fri, 09 Jan 2015 07:12:09 -0500 Received: by mail-oi0-f48.google.com with SMTP id u20so11585746oif.7 for ; Fri, 09 Jan 2015 04:12:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=iBTffAnZW9+pCxS2Zov2OsSWVOQF4iwRuUvSRRVD2+0=; b=g5reTETatuL56o5EH2AojBtoSaKwK6RGElFWzxHo0oSOlL65xeExWx6Apa9PlVvPOZ RBIFObz/HQWRuU8eB0qEc7PZcvZ1QPGiJMmfGLmOPTjpSIqlCGoTQUDRST1OdHWZN4uZ dmB64wniReZt7WYMtWHy8TaPQpteO0MBYM+YQ= 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:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iBTffAnZW9+pCxS2Zov2OsSWVOQF4iwRuUvSRRVD2+0=; b=DwbduTziga0HHjppVqUPO2McheHvCiZt7PNpMRv1V6axcOwekHhoDttVpeTVA9UXyd WtB8r5subTX2mPpejAiEK7uqz3Jug/ATPxt6PVsLHK9A4Un0Sd6qui3BipTmcES+rjyX lbGBwhj6VR1TLgsG5Ix16tqUFobKvgv34aeDkBv4pYHP5kpmaGfD1exaQ3NmzoJiGnWA DwTWGxP5ITd1q41YIaYQzRwDaK1DO/Idwd/6wxsMw0xX9nmDSQRMrtz6Ph/brkLi6f5Q vxXtdy3RGrUKi5USdKq9Fwz4A2Tu7nJE4Sm1FxnK5m6Y2OG01YlZ7L1ccEW16Du0bQTJ GH7w== X-Gm-Message-State: ALoCoQnwXuzYOuGjGIgyoPCS4E+O38ERj6buG3dstqb76ynYWhpaG65OKsQwxGPmoRWK3zncOoKM MIME-Version: 1.0 X-Received: by 10.202.196.206 with SMTP id u197mr8479214oif.21.1420805524829; Fri, 09 Jan 2015 04:12:04 -0800 (PST) Received: by 10.202.214.146 with HTTP; Fri, 9 Jan 2015 04:12:04 -0800 (PST) In-Reply-To: <007801d02ba0$659b9080$30d2b180$@tekwire.net> References: <003e01d0290b$2387dd30$6a979790$@yahoo.fr> <007801d02ba0$659b9080$30d2b180$@tekwire.net> Date: Fri, 9 Jan 2015 14:12:04 +0200 Message-ID: To: francois@tekwire.net Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [BugFest] Feature request #38685: str_[i]replace(): Add support for (string needle, array replace) From: narf@devilix.net (Andrey Andreev) Hi, Just wanted to say: +1 on this and thank you for proposing a patch. I myself created a feature request for it on bugs.php.net some time ago, now closed as duplicate: https://bugs.php.net/bug.php?id=3D62315 Cheers, Andrey. On Fri, Jan 9, 2015 at 2:08 AM, Fran=C3=A7ois Laupretre wrote: > Hi, > > I just created the RFC : > > https://wiki.php.net/rfc/cyclic-replace > > I tried to include everything we agreed upon. Tell me if I missed somethi= ng. > > Please note that the current PR does not implement the whole RFC. You may > review the RFC while I update the code. > > Please also give me your opinion about implementing a similar feature in > preg_replace() and preg_filter(). > > Regards, > > Fran=C3=A7ois > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >