Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41856 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74584 invoked from network); 11 Nov 2008 21:10:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2008 21:10:49 -0000 Authentication-Results: pb1.pair.com header.from=mark@dynom.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mark@dynom.nl; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain dynom.nl does not designate 85.92.132.6 as permitted sender) X-PHP-List-Original-Sender: mark@dynom.nl X-Host-Fingerprint: 85.92.132.6 smtp1.duximus.nl Linux 2.5 (sometimes 2.4) (4) Received: from [85.92.132.6] ([85.92.132.6:56367] helo=smtp1.duximus.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/71-07308-5D4F9194 for ; Tue, 11 Nov 2008 16:10:48 -0500 Received: by smtp1.duximus.nl (Postfix, from userid 501) id B204FB0201F; Tue, 11 Nov 2008 22:10:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on dux03.duximus.nl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=1.8 tests=AWL,BAYES_00 autolearn=ham version=3.1.9 Received: from localhost (dux03.duximus.nl [127.0.0.1]) by smtp1.duximus.nl (Postfix) with ESMTP id 92EB5B01F49; Tue, 11 Nov 2008 22:10:09 +0100 (CET) X-Virus-Scanned: amavisd-new at duximus.nl Received: from smtp1.duximus.nl ([127.0.0.1]) by localhost (dux03.duximus.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k2l8ao0O8k4V; Tue, 11 Nov 2008 22:10:05 +0100 (CET) Received: from dux05.duximus.nl (unknown [85.92.132.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.duximus.nl (Postfix) with ESMTP id 3E372B01F41; Tue, 11 Nov 2008 22:10:05 +0100 (CET) Received: from localhost ([127.0.0.1] helo=[192.168.0.52]) by dux05.duximus.nl with esmtpa (Exim 4.60) (envelope-from ) id 1L00VB-0005wJ-Oe; Tue, 11 Nov 2008 22:10:21 +0100 Message-ID: <4919F4C0.4050202@dynom.nl> Date: Tue, 11 Nov 2008 22:10:24 +0100 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) 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> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] register globals -> PHP6 still replaces . in variables from outside From: mark@dynom.nl (Mark van der Velden) Sorry for bringing an old thread back to life, but imo this needs some more attention. 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 > It's a valid HTML input name attribute character [1] and imo the replacement feature (where ' ' and '.' characters are replaced to '_') should be removed in PHP 6, when the register_globals feature is removed. There will be PHP applications that need changing, but I estimate that it will be fixed easily. And since PHP 6 is breaking a lot anyway, what other version would be more suitable to change this. [1] - http://www.w3schools.com/TAGS/att_input_name.asp - Mark