Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106214 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80231 invoked from network); 16 Jul 2019 05:17:52 -0000 Received: from unknown (HELO mail-qk1-f173.google.com) (209.85.222.173) by pb1.pair.com with SMTP; 16 Jul 2019 05:17:52 -0000 Received: by mail-qk1-f173.google.com with SMTP id d79so13321960qke.11 for ; Mon, 15 Jul 2019 19:39:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gypLsxc5SHqQiKBiWyThUcvWnyrEmg5h7bATl3uxPu0=; b=P2J9sUsi3n3v40VAXJnP1pgvAq9VG8UUFDHifKeOTPFkA5omY5rDeXR4CL0iqhjA5v N1lLY+v8yBd8AiDGGQdnC9ZEG9SM3iqaAylI2LgHc2isBCuPs6/jz4ow93eWfdnVb2wM UnK9doN0izDezsFmRfnNZj1MtmUA08F+blp3sWWzXdELu9meGgEGV0uXV0ctZZKXLMF+ f5OCD5TIlu++H2pPMnt9n6oPKjIaR4W97FdHxzJT9E8BaI3xiNqBQzqICvlliJ9pM/3i ex/LTq2o8VplJ0vRbUM59L61BHVaHPIhmSstZuvbFhhWHLwClAjmCBksgLI25Qh2B0N6 NpZA== X-Gm-Message-State: APjAAAVhbb3bvTHgDFykHAaqun1fQiXHdC9l3tKywHXTBWpsapvTh4ye raR5vqkfalgh59qMO8RY0B/jWm6qIERe3p3tC0I= X-Google-Smtp-Source: APXvYqxQvXl8nJ04KnNn/q2QdXhApAgp5lpk8q02tJhsmmt78Xh78ipx580OjKqR//F1cuIFAgunK7x9lsn11z4ALoI= X-Received: by 2002:a37:bd7:: with SMTP id 206mr19762145qkl.440.1563244749665; Mon, 15 Jul 2019 19:39:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 15 Jul 2019 21:38:58 -0500 Message-ID: To: Arnold Daniels Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000004c70058dc34867" Subject: Re: [PHP-DEV] Stop replacing dots with underscores in query, post and cookie parameters for PHP 8? From: pollita@php.net (Sara Golemon) --000000000000004c70058dc34867 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 15, 2019 at 8:39 PM Arnold Daniels wrote: > PHP replaces dots with underscores for $_GET, $_POST and $_COOKIE. > This behavior once made sense because of Register globals. > The explanation in the manual also still implies that query and > post parameters are converted to variables > (see https://php.net/manual/en/language.variables.external.php#language.variables.external.dot-in-names ). > Register globals has been removed since 5.4.0 and thus this behavior serves little purpose. > > I think it would be good to remove the conversion in PHP 8, as it's a general cause of confusion and annoyance for anyone who comes across it. > > Is there a good reason to keep this behavior in PHP 8? > IMO, we can safely kill this. If anyone needs this behavior preserved, it can be mimicked with half a dozen lines of PHP, or heck we can include a function to call. I will, however, be very surprised if anyone misses this by now. -Sara --000000000000004c70058dc34867--