Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53092 invoked from network); 15 Sep 2017 17:59:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2017 17:59:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=mdwheele@ncsu.edu; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mdwheele@ncsu.edu; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ncsu.edu from 209.85.216.182 cause and error) X-PHP-List-Original-Sender: mdwheele@ncsu.edu X-Host-Fingerprint: 209.85.216.182 mail-qt0-f182.google.com Received: from [209.85.216.182] ([209.85.216.182:44732] helo=mail-qt0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/B5-19300-6E41CB95 for ; Fri, 15 Sep 2017 13:59:04 -0400 Received: by mail-qt0-f182.google.com with SMTP id m35so2882073qte.1 for ; Fri, 15 Sep 2017 10:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncsu-edu.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=fFr/452ISFTbw1gCA9053fpWZ0Ui1bdhw+WMW5/0dL8=; b=DG7pXQ3t3ErbW380EarrgPUcIPjzmf9n61X2WkuNou9e+ao3h+iApobAbYuasK7ou7 t/iSc0pYZegQbaDYjlSx8IPhjXxZJ2OKXZOnjX4yascJdsJJppez5kOp4qAYM3sSrq/t DMwDa/BhLkCdPN+lLFYk4mAcOu53t7NQy5G+x2ge2bETm/LmBMutEHPA6sNl/tMALj+p uoXERLhyY06un6ay1XvCUd71/tLdbSrvQZeqKMZOOrXsSUg/7j/KS2YztUuvg4zQ1jh+ HizykuHpCXYmlKnrMTHzBW+q0lOHlRkUWlGsEbjJmeEu7isO0DPI7JpaVBiheRL+8luL htag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=fFr/452ISFTbw1gCA9053fpWZ0Ui1bdhw+WMW5/0dL8=; b=i1PFQOvn9aWjNEafLWq7bjtZNoebS2p/lK2kpEko4m0PdAnZnpzcTh4X/OrWF93Qcn 8hxe3ZAZ60UyzcpUX6xx0MBOocFGT7teDckRN2rTY64Cz2owj1cnL3RuvYBVSAtlz2Mc 4dUknQAdKuypMciAKBjWfcxIMhp+6CHr344XHwQAEjtU/n/0FqomYKtnq1Rxyn8o3TTX 3pHlDeTBYGHQLhBxW8Z+Tx0PQtPuhrDB9++r3BArDRTfoMosfSt9/lawbUGpGGTmodmS SQGesOoIOwlZBI2dKFZh3XTbs5OKm4/bpWuEQn1UYhUV+lauBiLed5dqpTlnSI6ejXyB aA/Q== X-Gm-Message-State: AHPjjUgGwYeMwYcqOw5LE+Jn9U9ACoRU/s71IIy25qOHdyorhVQHGdXA FMOo5Xr7etRRmoBSrWqti1EC4HAeCLmC53gQhzF1oYI/mJGx1nUOjaaa/7mbLjdJRz0A5T0Ku73 8FcqzIBdD651BXYyf7ZLlW6JMdZ+77S1i3uj3AFhpOh+EWfqgIEAKy4Dc8A== X-Google-Smtp-Source: AOwi7QCyx1v7ajaxdrrNiqhaMC/3YdlO+qB6cFqrOIOyWx2fbzlbcGCJ+U9jBX6raC6l9lrus3NjkA== X-Received: by 10.200.55.141 with SMTP id d13mr38899058qtc.89.1505498339281; Fri, 15 Sep 2017 10:58:59 -0700 (PDT) Received: from ?IPv6:2600:1004:b002:59b1:b981:1bfa:b410:5ce3? ([2600:1004:b002:59b1:b981:1bfa:b410:5ce3]) by smtp.gmail.com with ESMTPSA id f20sm913236qta.86.2017.09.15.10.58.58 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Sep 2017 10:58:58 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-6C63C715-AC08-49B9-B4A2-CD527E2E9D90 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Fri, 15 Sep 2017 13:58:57 -0400 Message-ID: <3BC17BD1-5FB6-4F4E-B354-2EF40B79BC45@ncsu.edu> References: <097578bf-ab74-44cf-a465-dc6fdd50930f@Spark> <7d703ad8-5596-44e7-95dc-23c2cc058408@Spark> In-Reply-To: To: PHP internals X-Mailer: iPhone Mail (14A456) Subject: Re: [PHP-DEV] [RFC] Deprecate the extract function in PHP 7.3 From: mdwheele@ncsu.edu (Dustin Wheeler) --Apple-Mail-6C63C715-AC08-49B9-B4A2-CD527E2E9D90 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, (accidentally replied to only OP)... > On Sep 15, 2017, at 1:35 PM, ilija.tovilo@me.com wrote: >=20 > Hi Marco >=20 > I can see it=E2=80=99s usefulness in this case. >=20 > But wouldn=E2=80=99t it be better to implement this by hand in these rare c= ases (it=E2=80=99s 3 lines of code) instead of encouraging the pollution of t= he symbol table by unknown input? It=E2=80=99s also clearer since people who= don=E2=80=99t know the `extract` function probably don=E2=80=99t expect it t= o mutate the local symbol table. This argument is predicated on the assumption that my input is unknown. This= assumption is not universal to all codebases as implied.=20 There are many "foot guns" in every language and framework. I don't think it= is necessary (or wise) for the language to assume responsibility for abuse.= =20 This is the same line of reasoning that could be used to justify removing se= rialize/deserialize because a developer could "accidentally a tent" or we co= uld build safer options into the feature (as you've already described) Just my 2c= --Apple-Mail-6C63C715-AC08-49B9-B4A2-CD527E2E9D90--