Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93773 invoked from network); 15 May 2009 06:09:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2009 06:09:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike503@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike503@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.92.27 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mike503@gmail.com X-Host-Fingerprint: 74.125.92.27 qw-out-2122.google.com Received: from [74.125.92.27] ([74.125.92.27:65427] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/1A-27038-2370D0A4 for ; Fri, 15 May 2009 02:09:55 -0400 Received: by qw-out-2122.google.com with SMTP id 9so1488593qwb.59 for ; Thu, 14 May 2009 23:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=g84BzXDNsHh3RGoQCANrxUysBu0Ev3F8KrXYU+BHowA=; b=w6prxBfhpmTP6TDI6EXRs7jSXTqszPIpguGdy9VH2X+lL9RvVRnKxIPiiOJIfxC1Wo QYbCiPJKieveDQc/P/FR8wYlGTvyszwTtli4namr5Ip57Isva4abko3rPfxOWPZqHqI0 UojdO5vRBrulA1r+Y3HK98K7vfQn2w3gbYCo4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mzno+rMuxF6IqQuKmFhf0hVIOMnPICpG+OPGo6P29zitV6xDdP2xJDoB86AxTXsBti r06qxqPMoMsBQj+lmF+kqZKYourLuGEMemuDaYi5ATkpB/HPCNujHciyvnxhmHjE/wFY ufJlsDh7fXeoA25Ix8WvRS78J6f2xGspnRs5k= MIME-Version: 1.0 Received: by 10.229.79.8 with SMTP id n8mr2023749qck.37.1242367792426; Thu, 14 May 2009 23:09:52 -0700 (PDT) In-Reply-To: References: <4A0C9516.8060808@gmail.com> Date: Thu, 14 May 2009 23:09:52 -0700 Message-ID: To: Patrick ALLAERT Cc: Nathan Rixham , PHP Development Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Why does $_REQUEST exist? From: mike503@gmail.com (Michael Shadle) I think this strikes a good balance between backward compatibility... I would hope though the code for it is very simple, to not add overhead to PHP. Basically in PHP the pseudocode equivalent would be if(ini_get('reigster_request') =3D=3D true) { $_REQUEST =3D array_merge($_GET, $_POST, $_COOKIE, $_SESSION); } On Thu, May 14, 2009 at 11:01 PM, Patrick ALLAERT wrote: > Hello, > > I think Michael's vision is right in this area, maybe bc could just be > achieved having a "register_request" INI parameter that is set by > default to OFF that people just have to enable if they rely on > $_REQUEST. > We could manage it the same way register_globals is: > "This feature has been=C2=A0DEPRECATED=C2=A0as of PHP 5.3.0 and=C2=A0REMO= VED=C2=A0as of PHP 6.0.0" > > Patrick >