Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88006 invoked from network); 16 Jan 2015 11:05:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2015 11:05:35 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.180 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:46799] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/21-15918-C70F8B45 for ; Fri, 16 Jan 2015 06:05:33 -0500 Received: by mail-wi0-f180.google.com with SMTP id bs8so3074866wib.1 for ; Fri, 16 Jan 2015 03:05:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=37NTqdHnbfbRqD48d9X/8l+bFKsEMPyFx33wC9oc7tg=; b=FtyIT0yPNtIJ5Ttu/W8KqLt0KA6AC3FAEHw8JpScejTy2s5LfdhyZPqL7jAE+uPkFM cABT3DHDiTwmP47zy6v4TONdsmXVnBDOvdljgVO8HhfTldpc8s4wFive91HfmkOpU/I6 K2SItn7E1KL8080hPUacBq3peXICnLSHNdYU/gVv7taZV5n2pBihEtzF6kE6kJLtSBfG mvqGlQFbwnChftDebFjoP7tZz8MzG3Z0kzjB5QWiLoPdBv7iXq8xSeXwV44GylE63hs5 yo9CfbRf1nc5H8QQJTXaSHMiemVRNKQprvltejIUhSWo1Nb4JbYfO8ly3E253fH3eRMC 9U0Q== X-Gm-Message-State: ALoCoQm9VQkZyPjeKgjvMcUz9dC3+5Ty2q+8WJ6tjo+wrbeIcejhYry8nDxdL3csP3kr2RoXuXqT MIME-Version: 1.0 X-Received: by 10.194.10.68 with SMTP id g4mr11974787wjb.5.1421406329385; Fri, 16 Jan 2015 03:05:29 -0800 (PST) Received: by 10.194.57.73 with HTTP; Fri, 16 Jan 2015 03:05:29 -0800 (PST) X-Originating-IP: [77.11.10.79] In-Reply-To: <54B8E333.1010501@lsces.co.uk> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <000301d02fd3$456ab390$d0401ab0$@tutteli.ch> <89065BA9-7D1E-43DE-881F-CF15C38AA27F@ajf.me> <54B8E333.1010501@lsces.co.uk> Date: Fri, 16 Jan 2015 12:05:29 +0100 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b5d997f585422050cc2f385 Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: kontakt@beberlei.de (Benjamin Eberlei) --047d7b5d997f585422050cc2f385 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 16, 2015 at 11:08 AM, Lester Caine wrote: > On 15/01/15 15:28, Niktia Nefedov wrote: > >> Consider what a mess was register_globals and problems it had, but at > >> least > >> it was a global setting. Declare will work on per file basis, and it > will > >> end up even more of a mess. > >> > >> I think PHP development community learned that lesson and that's why you > >> get pushback, and not only from internals, but also from the userland. > Me > >> including. > > > > What does it have with register_globals in common? Why would it be a > mess? > > Removing 'register_globals' breaks code for users who have no idea that > their sites are even using it. deprecating on one version - which one is > told to switch off the warnings for - just means that when the hosting > skips a version the site simply stops working. That is why 5.2 is still > around and why hosting companies have problems ... and I still have code > which relies on 'register_globals' today because those sites are simply > working. There is simply no time to 'fix' them :( > > At the end of the day the whole of the legacy codebase either has to be > brought forward, or PHP5 will be hanging around for some of the same > reasons PHP4 did. Bringing in more areas where differences between code > bases can diverge again over time is creating the same black holes in > the future. > You keep bringing this up, but there is a workaround to manually "enable" register globals again if you need to have it for migration. It should just work (TM) (haven't actually used it) foreach ($_REQUEST as $k => $v) { $GLOBALS[$k] = $v; } Not sure why we have to discuss this over and over again on this list. > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7b5d997f585422050cc2f385--