Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46864 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76094 invoked from network); 22 Jan 2010 05:18:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2010 05:18:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.154 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 72.14.220.154 fg-out-1718.google.com Received: from [72.14.220.154] ([72.14.220.154:46028] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/61-02057-625395B4 for ; Fri, 22 Jan 2010 00:18:30 -0500 Received: by fg-out-1718.google.com with SMTP id 22so100230fge.11 for ; Thu, 21 Jan 2010 21:18:27 -0800 (PST) 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=MelANcXT9x6tMeA999DgDkPj5Tc82NzWS+kGzPvdrCY=; b=xBJLRpui8MqXGxyEsp68xxptyDqNzP5mS9SWgW4iDQx1oqYPGwPjXa+0oVSVYc0YtM ndsVadUBOtudZbic1RlhazOVXygTiK4hOy+qi/Wkx6FRDACGGytgVQ/PFGexZ2njbXe5 KGfibWGJCnl+UEnbT9ZBXNFwRt22TfxGs16ms= 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=vK6HR5CHwPuLE7GprMUkUIj2opyezbbySUh/KQaYZyUaMWLMm9rRD4+qQsCF0Z9Fg0 mYAjUqolRDorMPjpJBwIAQrly7Y2lCAUYy2S7HQv02RUyRVXmt2KcPKO9pWjf6cE36Gq qsVFgXXPrtPgasj2Ft+RhNE9hoEa3SMKhVbQQ= MIME-Version: 1.0 Received: by 10.103.84.15 with SMTP id m15mr1273780mul.43.1264137507310; Thu, 21 Jan 2010 21:18:27 -0800 (PST) In-Reply-To: <18.97.26239.228985B4@pb1.pair.com> References: <3392.98.193.1264087265.squirrel@www.l-i-e.com> <5DA23CE5-D6A9-47D0-ADE6-48F0B58918AD@gmail.com> <18.97.26239.228985B4@pb1.pair.com> Date: Fri, 22 Jan 2010 08:18:27 +0300 Message-ID: To: jvlad Cc: internals@lists.php.net Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Dots and spaces in variable names are converted to underscores. From: crocodile2u@gmail.com (Victor Bolshov) > And I'm not sure who would actually use 'a.b' and then expect 'a_b', > but I have to assume somebody has done that, perhaps consuming an API > from somewhere else. OpedID protocol uses dots in query string arguments. The implementations could be broken by the patch. While the "keep arguments as is" behaviour is certainly better in the long run - issues like OpenID should be taken into account. 2010/1/21 jvlad : >>> >>> For BC, I suppose PHP could have *both* 'a.b' and 'a_b', or yet >>> another php.ini flag (sorry!) to choose the behaviour. >> >>-1 from me. >>I don't think we need to keep backward compatibility for this. PHP-6 is a >>major release, after all. >> >>It would be absolutely enough to add optional var-name conversion to >>extract()=3D > > By default extract _ignores_ variables with dots like a.b > Even though register_globals should be removed, it does not mean that the > default behaviour of extract > should be changed. > If it's _necessary_ to provide a way to mimic register_globals > functionality, a special flag for it should > be added, something like EXTR_MIMIC_REGISTER_GLOBALS that will replaces > incorrect characters > in the variable names with underscrores. > In this case BC won't be broken. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F7=C9=CB=D4=CF=D2