Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16670 invoked from network); 5 Feb 2012 16:45:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2012 16:45:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=mikegstowe@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mikegstowe@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: mikegstowe@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:55232] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/81-09047-022BE2F4 for ; Sun, 05 Feb 2012 11:45:21 -0500 Received: by iakk32 with SMTP id k32so8341823iak.29 for ; Sun, 05 Feb 2012 08:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=2nHhBNGigJqb6RmNKU9OEt94TzNdWGop0qd8+s6ap60=; b=Gt/9eJw2n8OOYIUGlwRlMfKcCtc73qbCsBsRGzK95oAnwnzqS+cdnnEgfttzk7wyux PH2FQu7UKBe6eNZ3dLLgAfv91Xxrdzw7ENn1rhiBasw2Ugpkt5RwUBFHZpFIa44J3/lQ DhfTVA1g4+52w9GrSwqwwR2vu8Ld39aZQK3tc= Received: by 10.50.189.134 with SMTP id gi6mr6799003igc.18.1328460316976; Sun, 05 Feb 2012 08:45:16 -0800 (PST) Received: from [192.168.0.102] (24-177-107-42.dhcp.roch.mn.charter.com. [24.177.107.42]) by mx.google.com with ESMTPS id ub10sm11988939igb.7.2012.02.05.08.45.15 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Feb 2012 08:45:16 -0800 (PST) References: <4F2EAF7D.9080506@thelounge.net> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: <60BDBA28-4E97-4C60-8E31-E34F7E4831AC@gmail.com> Cc: Reindl Harald , "internals@lists.php.net" X-Mailer: iPhone Mail (9A405) Date: Sun, 5 Feb 2012 10:45:13 -0600 To: Tom Boutell Subject: Re: [PHP-DEV] [RFC] Deprecate and remove /e modifier from preg_replace From: mikegstowe@gmail.com (Michael Stowe) Perhaps rather than killing it we should just emphasize it more in the docum= entation (ie on preg_replace and not only in pattern modifiers).=20 But I have found the /e modifier to be very useful in the past. Unfortunatel= y, just having woken up I can't remember exactly where and how I used it, lo= l.=20 Perhaps another option, if it's a security concern is the ability to turn of= f the /e modifier, and have it off by default. This way we can protect our l= ess experienced programmers, while keeping it available for more advanced us= e cases.=20 Just my two cents + inflation - Mike Sent from my iPhone On Feb 5, 2012, at 10:37 AM, Tom Boutell wrote: > A sense of humor is important when reading mailing lists frequented by > extremely clever people (: >=20 > On Sun, Feb 5, 2012 at 11:34 AM, Reindl Harald wr= ote: >> what he hell - if you kill eval you would kill the whole >> work of my life and yes i know that eval is evil and >> it is only used at one place which is a central and >> real important to include modules and set parameters >> dynamically >>=20 >> the /e modifier is a total other dimension because it can >> be used by people not knowing what they are doing exactly >> by C&P any code snippet >>=20 >> eval() is a documentated function >>=20 >> Am 05.02.2012 17:21, schrieb Pierre Joye: >>> I think we should remove eval at the same time then. As the risk is >>> exactly the same in both situations. Eval is just as evil and can be >>> avoided as well (or any other similar features, not sure if other exts >>> allow that). >>>=20 >>> Cheers, >>>=20 >>> On Sun, Feb 5, 2012 at 3:59 PM, Nikita Popov = wrote: >>>> Hi internals! >>>>=20 >>>> I have written an RFC that proposes to *deprecate* and *remove* the /e m= odifier: >>>>=20 >>>> https://wiki.php.net/rfc/remove_preg_replace_eval_modifier >>>>=20 >>>> Comments welcome! >>=20 >=20 >=20 >=20 > --=20 > Tom Boutell > P'unk Avenue > 215 755 1330 > punkave.com > window.punkave.com >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20