Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73117 invoked from network); 5 Feb 2018 14:43:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2018 14:43:28 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wm0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:40649] helo=mail-wm0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/0E-49805-F8D687A5 for ; Mon, 05 Feb 2018 09:43:28 -0500 Received: by mail-wm0-f51.google.com with SMTP id v123so26360649wmd.5 for ; Mon, 05 Feb 2018 06:43:27 -0800 (PST) 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=jy7cEFfqGPPDxbcHgG2bu9XQDGWW+juvAvfiT6+4bh8=; b=NyonPlBU0qmD4tS9FUumKXjm5S69aoOWoVpSmvjaYL0kHOSmzE4vSd346TlDMJziup qw9U/Wn6BFIrcOSMQPlHn4FSFToYx2CBJpPflPevTMTe/KXItwElFOk8yY3tJTjSfSmc 1Hpdq3IfEZpqMOYR5I0l1TJoWV+MpbOo1uHMJYtlNzllwMmj8xgZ/FH0Ws5F8O6mt0ZQ HwVII2sSI5KypdAqBsdYHs7y5A8P9SCnjGKxfSb7yxEEHehiohmojivFc0oT3CwP71E3 y1vkLRTDszLDYD/5UgYoFZNVNFTE7PZUKdWuAzswhvJU+NpzmyhZ32OUnqf0nyznpGH7 9EHg== 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=jy7cEFfqGPPDxbcHgG2bu9XQDGWW+juvAvfiT6+4bh8=; b=IUMdf68/Lm5iYJZP9vIQSVd4NP3+nILT2oz6PQgaaygi0wCB3r3oZk5lp08nCCIqg5 ahL+7oVWqz88hvrufUa9ND5OTNPq/5VzK1rkcjEw091LwVrR6DUOZa6CGF7w/YSEsxtG l66SQ3ukEvZ62QpU6xD9zFE1BBVsiguaJ7goKVxNcci02pW+5l7cOpa9sVVf8QlPNpYh zwP/OGIIgrnLPVePOkYS/GZFAX7wVzgBxEr9weyraFIO2OZKF1M1qodotm26La3QhM8I R/jxB2G2IzXJbFD3XKZ2kqtvUVT92d8/0omRP7lgaRHUdMraDnjYL/lf9wAwh2qAEQZf Dfrg== X-Gm-Message-State: APf1xPBrR0R0w5NfrYkkspChhmFtD57S6HqHrMFZPsy5jou4kDlaZGk5 AErDWgfZz2bcNUIRaspjr3hQbjZQh+tIBYHPqgE= X-Google-Smtp-Source: AH8x226XqCBs930XkJ9ynnqvxWMmR0GEgy6kYGWaCj/n1Q/FPWWSxyAl2vhyMK+qVoXV+kzWkqMG+2Tm+6Y9/bUra1w= X-Received: by 10.28.108.4 with SMTP id h4mr23760wmc.161.1517841805195; Mon, 05 Feb 2018 06:43:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.135.61 with HTTP; Mon, 5 Feb 2018 06:43:04 -0800 (PST) In-Reply-To: References: <07d9e3a0-d516-aa77-4818-ce8b02e8dd08@gmail.com> <79b192e6-a6bd-bd13-6bd4-b56011a5eac2@gmx.de> Date: Mon, 5 Feb 2018 15:43:04 +0100 Message-ID: To: Michael Morris Cc: PHP Internals Content-Type: multipart/alternative; boundary="089e082f86089fbf780564781528" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Deprecation of fallback to root scope From: ocramius@gmail.com (Marco Pivetta) --089e082f86089fbf780564781528 Content-Type: text/plain; charset="UTF-8" On Mon, Feb 5, 2018 at 3:39 PM, Michael Morris wrote: > > > On Mon, Feb 5, 2018 at 8:33 AM, Marco Pivetta wrote: > >> >> On Mon, Feb 5, 2018 at 3:28 PM, Michael Morris >> wrote: >> >>> The problem is that behavior has been around so long that any attempt to >>> change it would incur a massive amount of changes. Using the E_STRICT >>> notice level instead of E_DEPRECATED has been floated as one fix for >>> this, >>> but this doesn't change the fact that major applications and frameworks, >>> such as Drupal, pride themselves in being able to pass all tests even >>> with >>> E_STRICT enabled. The maintainers of these projects would be annoyed to >>> say >>> the least to need to fix thousands of lines of code to get back to that >>> point, and downstream projects such as Drupal could end up waiting years >>> for all their upstream libraries to get their act together. >>> >> >> Much like any upgrade requiring patches for full compliance with newer >> PHP versions, it needs work. >> >> The typical workflow is: >> >> * add PHP.NEXT to the CI setup >> * run everything through the tests again, figure out how much has broken >> * fix it >> >> In this case, we even *already* have *multiple* tools that automatically >> fix this problem in one shot. >> >> Since the two issues are somewhat tied, why not bind them to a >>> configuration flag following the pattern that was used to ultimately >>> remove >>> register_globals functionality from the language? At this point let it >>> be >>> known that when constant/function overloaders hit a php.ini config option >>> will be added to turn them on -- and turning them on will turn global >>> scoping for functions off. >>> >> >> Argh >> >> > Agreed, but you can't just pull the rug out from under people. It's > painful, but it's better to let people opt in to such a major change than > to "break" their code. > We're talking about a deprecation, not removal of a feature. First of all, it doesn't remove the feature, which means that everything keeps working as-is, and second, we already have a way to configure error reporting for deprecations ("configuration") ;-) The point of deprecations is precisely to give downstream time to adjust and release the adapted code, which we do all the time anyway. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --089e082f86089fbf780564781528--