Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57137 invoked by uid 1010); 24 Feb 2008 20:13:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57122 invoked from network); 24 Feb 2008 20:13:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2008 20:13:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 72.232.140.210 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 72.232.140.210 midden.org.uk Received: from [72.232.140.210] ([72.232.140.210:33704] helo=lovelace.midden.org.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/70-53449-7DFC1C74 for ; Sun, 24 Feb 2008 15:13:12 -0500 Received: from macvicar.demon.co.uk ([80.177.111.173] helo=[192.168.1.105]) by lovelace.midden.org.uk with esmtp (Exim 4.63) (envelope-from ) id 1JTNDg-0002QL-9o; Sun, 24 Feb 2008 20:13:08 +0000 Message-ID: <47C1CFC7.7070907@macvicar.net> Date: Sun, 24 Feb 2008 20:12:55 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Sebastian CC: internals@lists.php.net References: <03.10.53449.C0EC1C74@pb1.pair.com> In-Reply-To: <03.10.53449.C0EC1C74@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] register globals -> PHP6 still replaces . in variables from outside From: scott@macvicar.net (Scott MacVicar) The old behaviour would have to remain as well as anything new as it isn't easy to simply change your script. You'd need to track down all your input and change any references of x.y to x_y to ensure you don't break anything. Scott Sebastian wrote: > hi, > > PHP6 still replaces "." with an underscore in variables from outside. this > is an old behavior forced by register globals so i would say its a bug since > "." is valid in array keys. > > for sample: > > call a script like http://www.example.com/?my.var=1 > > now $_GET will look like this: > > Array ( [my_var] => 1) > > Thanks >