Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100674 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32281 invoked from network); 16 Sep 2017 11:48:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2017 11:48:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.172 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.128.172 mail-wr0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:52126] helo=mail-wr0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/31-19300-0AF0DB95 for ; Sat, 16 Sep 2017 07:48:49 -0400 Received: by mail-wr0-f172.google.com with SMTP id z39so3361596wrb.8 for ; Sat, 16 Sep 2017 04:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qpMgezMc6C0fRzH4QDMNXmi+rsI0IR19fpnJWCHKado=; b=jXNKyPm6WZKt7w/nrnOI5qxISxZZBKEFV8ZhU2wCtLeasCq6Zs/aHYzYdGRVjjn/28 /8XOtjk6pYo1+8id/spwroPdFRqdv7FnWeVA4zOf//MrIJxEeO7GbvhC2Jk+ug9utb96 /TRbuFHsW65uvO7rwljIFZzE96DfGUSI9R5kIbNwG3Sf2E5k7grq0PqnkoOKHFLI9vM+ Dvb8XyekvQSWLYH7kSbp5ZpicK9EMk41p1GLO5cYQjIEC+qMq6LZg+BYcuzuFglz0A17 ybKfvx3DOKm9LLjWSf1fWah+hzZn5Wbf5cvYj/gP9ODgR6EkFN3gRI8be2B/kXGI7NXA tBqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qpMgezMc6C0fRzH4QDMNXmi+rsI0IR19fpnJWCHKado=; b=eXK5Dr4kWZcHCc9/xp/qO8dMc1pmVh5dA+4Hsr4fC+OFEbDFAomX4CyN4WIQYhoPgb 4ANji5F3wK72gloznVa4r1ghPFUmf/OcvNrRVH23FFV3S78LXwywQtV2oviwTM1wWqON FgJ2ZGH8mA8eZ1XcZCYF0UR308p4EvEY46au6G9mOWGgpcqXQOLaifO1LI8vuTJxioLd 8OIoTb+tpuOH6BkVQB5Gvahf7BysTs1oClDtTFNNWJdNXOTUrVJwykNQH/55shggXVlO Jwlp4dVi1O77aMmFxbXJzQUYT3GUoNhJ8zv0DiBzhB2cdH6v0bRsXHs8q3Z5Jd6WzspI fJHA== X-Gm-Message-State: AHPjjUiTLbDWCGB9gSt56P7i1EglzbkRsATVWd2Vg5y0SPNNWnehKA+H jJj9V3YCBdTHDp/ABA3fywB8DdYts1QR86WIl6lU1g== X-Google-Smtp-Source: AOwi7QC+ovTTczKnjIhJny9qZoyv2gUPOPCsu8axwoRO8WXh3og2ksbRkX5yqvpDg2upf/Kng144220OmU/icy54RY0= X-Received: by 10.223.175.230 with SMTP id y38mr5200529wrd.213.1505562526394; Sat, 16 Sep 2017 04:48:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.164.6 with HTTP; Sat, 16 Sep 2017 04:48:45 -0700 (PDT) Received: by 10.223.164.6 with HTTP; Sat, 16 Sep 2017 04:48:45 -0700 (PDT) In-Reply-To: References: <097578bf-ab74-44cf-a465-dc6fdd50930f@Spark> Date: Sat, 16 Sep 2017 13:48:45 +0200 Message-ID: To: lists@rhsoft.net Cc: PHP Internals List Content-Type: multipart/alternative; boundary="f4030438939892af0605594d172d" Subject: Re: [PHP-DEV] [RFC] Deprecate the extract function in PHP 7.3 From: ocramius@gmail.com (Marco Pivetta) --f4030438939892af0605594d172d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable "then don't use it" worked great for `register_globals` and `magic_quotes`. Not saying it is the same here, but you really ought to have a bit of a mentality adjustment. On 16 Sep 2017 11:36, "lists@rhsoft.net" wrote: Am 15.09.2017 um 19:20 schrieb ilija.tovilo@me.com: > Hi! > > The `extract` function takes an associative array and puts it into the > local symbol table. > http://php.net/manual/en/function.extract.php > > ``` > $array =3D [ > =E2=80=98foo=E2=80=99 =3D> =E2=80=98foo=E2=80=99, > =E2=80=98bar=E2=80=99 =3D> =E2=80=98bar=E2=80=99, > ]; > > extract($array); > > print $foo; // "foo" > ``` > > As a second parameter the `extract` function takes some options to make > this function less dangerous, like `EXTR_SKIP` that prevents an existing > local variable of being overwritten. There=E2=80=99s a few more options, = go ahead > and take a look at the documentation. `EXTR_OVERWRITE` is the default one > though. You can also pass a prefix for the variable names as a third > argument. > > I seriously doubt the usefulness of this function > then don't use it - who are you proposing remove functionality because you don't use it - fine, nobody forces you to do so - a foreach() replacement would miss EXTR_OVERWRITE - this whole thread is a "have solution, looking for a problem" --=20 PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php --f4030438939892af0605594d172d--