Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41859 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84118 invoked from network); 11 Nov 2008 22:13:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2008 22:13:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.128.190 fk-out-0910.google.com Received: from [209.85.128.190] ([209.85.128.190:15654] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/43-07308-8730A194 for ; Tue, 11 Nov 2008 17:13:12 -0500 Received: by fk-out-0910.google.com with SMTP id 18so101545fks.7 for ; Tue, 11 Nov 2008 14:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=gWCdRJc0RtsIJ4rPiez9Y9VKwJZl+v59qhpNCMH9+7M=; b=quY9HYtctP/MutrLeoIZppWbfWjTB2KKGbbkBHWE8+3KVhYdMZVw533MO30iAk736f ylYn12OfKIXCczaO4CLAqc1JOjAkItCKxAJB1Z5zY5ipAq6DQbfeEdUfaj0G6aPKtQBr Qrn1xRRC4wCu3lRQPXkRtbPR107dSV6lyUm54= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pgCIJgoVNwW7LYUU6sSXnSspaY1Vpw3ax/uLUfN+PWnBy7WeVvExGEUy4dXT6+5ID4 +L9d/vYKl8x4QayidRDY4/zrDHLY/KG6WJycJFst/y6YDT192zlDnP57JHamqxQQpEI6 bvHW550LawtE7Ls3CghBJ/Ij+gcygv5GQVjFQ= Received: by 10.187.195.7 with SMTP id x7mr3054906fap.45.1226441589044; Tue, 11 Nov 2008 14:13:09 -0800 (PST) Received: by 10.187.218.19 with HTTP; Tue, 11 Nov 2008 14:13:09 -0800 (PST) Message-ID: <2dedb8a0811111413n59bbec62md0e8fc5132a6db30@mail.gmail.com> Date: Tue, 11 Nov 2008 23:13:09 +0100 To: "Mark van der Velden" Cc: Sebastian , internals@lists.php.net In-Reply-To: <4919F4C0.4050202@dynom.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <03.10.53449.C0EC1C74@pb1.pair.com> <4919F4C0.4050202@dynom.nl> Subject: Re: [PHP-DEV] register globals -> PHP6 still replaces . in variables from outside From: kalle.php@gmail.com ("Kalle Sommer Nielsen") Hi Mark 2008/11/11 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. I don't see it would work with something like import_request_variables() unless thats removed or extract(), which is some of the reasons for this replacement feature afair. > > > [1] - http://www.w3schools.com/TAGS/att_input_name.asp > > > - Mark > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Kalle Sommer Nielsen