Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105649 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12016 invoked from network); 9 May 2019 00:12:18 -0000 Received: from unknown (HELO mail-lf1-f42.google.com) (209.85.167.42) by pb1.pair.com with SMTP; 9 May 2019 00:12:18 -0000 Received: by mail-lf1-f42.google.com with SMTP id n22so8051967lfe.12 for ; Wed, 08 May 2019 14:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duncanc-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=fZdw8WnmEqvB0GjGxABkRGrInOgB1O8g9dT2EypPcvA=; b=i5zd8FUIXDtbvdsyx1qxVX4HieOl0yTcsD2AZaummjWMESTlj6d3K7EgsqRn8ZDv07 SRt6gU4BH34+fEnlPM2Ibk15txJRKcOnreSD5ZYzVengwRaNBp5s+ahpsasytyRdOoIE +JQwnp2P/H3NF+WJyTJ4IJ3pW3S9gb5ZR1ilmx8hZwYBz5VSV7r4MSe/j2NmOVeVhjS6 UbCzOkpyKp9gVCNruGzIkbx35e7GlC2L25Lqi0mP0R74Dnq+6suA/mCUTmMbXMLyVhuU RiZOz+jHGKDxvI0+MDLRQlyFgHln6PrhGlwmFTulzOxEiZJoZFHiQ8EF5G6olpA8DK7f 9Adg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fZdw8WnmEqvB0GjGxABkRGrInOgB1O8g9dT2EypPcvA=; b=Zjn6MXJmHYlYBj64rrpUCMTI+Yx/l7iedaSbIZIr9Y83mH145ZajdDY7oXJIcBL6y3 XnKA89+R2MO/jljo1cgIAIc7ypmghwcSNRbuck8VCDypLSAWlOQ4VLOhGNe1wEnqu+lT 2raId3qRJTCM43EDpbyHLwMPX3lGnc2979M8TRLPjimbxvv2MJXwHyYNbeToxe21ZcUI lDfqp9O1I+a+00+KRH2m+a1TNdh5a+AdLAQCBXf+V4pvTSiS4metVHY469l5alqkCUx+ QLY6WDddgV3nqQHbJRDUT/suqJ33MlVjLVwOzhveGCArF4U/TqicTEddb/kRLfnuqCK2 Hw5w== X-Gm-Message-State: APjAAAXRvAOTpdlNswRZ5Usv2C2si5sowWZ52X2OpKLMRgEeg0ot21Lh FbRUhsKk3NAfkL4eVkWoroBzXoXUhWo= X-Google-Smtp-Source: APXvYqxJmzZDYSdwGGAk6jB1N6pzUT5hGhbaKZhGL942/rT+Hh+bz+8dIypMaulW6wVl49kQG1qCpg== X-Received: by 2002:ac2:55b5:: with SMTP id y21mr165476lfg.84.1557350191623; Wed, 08 May 2019 14:16:31 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id k1sm21911lfc.18.2019.05.08.14.16.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 14:16:30 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id n4so168433ljg.4 for ; Wed, 08 May 2019 14:16:30 -0700 (PDT) X-Received: by 2002:a2e:858b:: with SMTP id b11mr4997lji.176.1557350189894; Wed, 08 May 2019 14:16:29 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 8 May 2019 22:16:18 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Internals Content-Type: multipart/alternative; boundary="000000000000dc2537058866d869" Subject: Using extract() with $this From: php@duncanc.co.uk (Craig Duncan) --000000000000dc2537058866d869 Content-Type: text/plain; charset="UTF-8" Hi everyone, I've just opened a pull request for some changes to *extract()* handling of *$this* https://github.com/php/php-src/pull/4133 I had a look through the original RFC discussion, and it looks like extract() was brought up and then quickly handled, but it seems like the handling was a bit over the top. https://externals.io/message/93457 As reported in the below bug, extract() throws an exception when the documentation suggests that it should be able to handle the scenario (either by ignoring the request to overwrite *$this* or by creating a prefixed version of it). https://bugs.php.net/bug.php?id=77135 The only one I'm unsure of is the *IF_EXISTS* flags, as *$this* isn't in the symbol table it's ignored even though technical *$this* does exist. But as this is the current behaviour and doesn't cause an issue I thought for BC it would be best to leave this behaviour alone. Does anybody disagree with this change? Does it need an RFC? --000000000000dc2537058866d869--